1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
28 lines
416 B
C
28 lines
416 B
C
// RUN: %clang_cc1 %s -E -Wdisabled-macro-expansion -verify
|
|
|
|
#define p p
|
|
|
|
#define a b
|
|
#define b a
|
|
|
|
#define f(a) a
|
|
|
|
#define g(b) a
|
|
|
|
#define h(x) i(x)
|
|
#define i(y) i(y)
|
|
|
|
#define c(x) x(0)
|
|
|
|
p // expected-warning {{recursive macro}}
|
|
|
|
a // expected-warning {{recursive macro}}
|
|
|
|
f(2)
|
|
|
|
g(3) // expected-warning {{recursive macro}}
|
|
|
|
h(0) // expected-warning {{recursive macro}}
|
|
|
|
c(c) // expected-warning {{recursive macro}}
|