No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / cpp / trad / funlike.c
blobdb550d53c76ba180c6fb2a692c077d04997473dd
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. */
5 /* { dg-do preprocess } */
7 #define f(x) x
8 #define h != 0
9 #define i
10 #define paren (
12 #if f != 0
13 # error /* { dg-bogus "error" "undefined name" } */
14 #endif
16 #if f h
17 # error /* { dg-bogus "error" "h not expanded" } */
18 #endif
20 #if f i
21 # error /* { dg-bogus "error" "empty macro" } */
22 #endif
24 #if f paren 6) /* { dg-error "missing binary" "macro-expanded parenthesis" } */
25 #endif