No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / cpp / skipping.c
blobb8daa890b94c84c30c3526a06659df196883e1c1
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
5 /* Tests expansion of macros whilst skipping false conditionals. */
7 /* Source: Neil Booth, 29 Oct 2000. */
9 #define F()
10 #define TRUE 1
12 #if 0
13 F( /* No diagnostic: don't even try to expand it. */
14 #endif
16 #if 0
17 #elif TRUE /* Expand this, even though we were skipping. */
18 #else
19 #error Macros not expanded in #elif
20 #endif
22 /* Check we don't warn about bad identifiers when skipping. */
23 #if 0
24 #define foo __VA_ARGS__ /* { dg-bogus "warned about identifier" } */
25 #endif