111
|
1 /* Test that undefined names evaluate to zero, that macros after a
|
|
2 funlike macro are expanded, and that if it is a '(' the funlike
|
|
3 macro is not treated as such. */
|
|
4
|
|
5 /* { dg-do preprocess } */
|
|
6
|
|
7 #define f(x) x
|
|
8 #define h != 0
|
|
9 #define i
|
|
10 #define paren (
|
|
11
|
|
12 #if f != 0
|
|
13 # error /* { dg-bogus "error" "undefined name" } */
|
|
14 #endif
|
|
15
|
|
16 #if f h
|
|
17 # error /* { dg-bogus "error" "h not expanded" } */
|
|
18 #endif
|
|
19
|
|
20 #if f i
|
|
21 # error /* { dg-bogus "error" "empty macro" } */
|
|
22 #endif
|
|
23
|
131
|
24 #if f paren 6) /* { dg-error "-:missing binary" "macro-expanded parenthesis" } */
|
111
|
25 #endif
|