blob: fe8e90c721d9b007ff6ec295e290451ed9041b51 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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}}
|