struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / qct / 0087-macros.c
blob65d678bf65f6e28cb0fac1edfb6044c8532a8b00
1 #define ZERO_0() 0
2 #define ZERO_1(A) 0
3 #define ZERO_2(A, B) 0
4 #define ZERO_VAR(...) 0
5 #define ZERO_1_VAR(A, ...) 0
7 int
8 main()
10 if (ZERO_0())
11 return 1;
12 if (ZERO_1(1))
13 return 1;
14 if (ZERO_2(1, 2))
15 return 1;
16 if (ZERO_VAR())
17 return 1;
18 if (ZERO_VAR(1))
19 return 1;
20 if (ZERO_VAR(1, 2))
21 return 1;
22 if (ZERO_1_VAR(1))
23 return 1;
24 if (ZERO_1_VAR(1, 2))
25 return 1;
26 if (ZERO_1_VAR(1, 2, 3))
27 return 1;
29 return 0;