[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / warn-disabled-macro-expansion.c
blob21a3b7e4f1421fdecf299610642098f979e6c1cb
1 // RUN: %clang_cc1 %s -E -Wdisabled-macro-expansion -verify
3 #define p p
5 #define a b
6 #define b a
8 #define f(a) a
10 #define g(b) a
12 #define h(x) i(x)
13 #define i(y) i(y)
15 #define c(x) x(0)
17 #define y(x) y
18 #define z(x) (z)(x)
20 p // no warning
22 a // expected-warning {{recursive macro}}
24 f(2)
26 g(3) // expected-warning {{recursive macro}}
28 h(0) // expected-warning {{recursive macro}}
30 c(c) // expected-warning {{recursive macro}}
32 y(5) // expected-warning {{recursive macro}}
34 z(z) // ok