Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / cpp / extratokens2.c
blobfe682bfa59d88cc1368082cf78276e1dda1e1663
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-fno-show-column -Wno-endif-labels" } */
6 /* Tests that -Wno-endif-labels correctly disables the checks done by
7 default (and tested in extratokens.c). */
9 /* Source: Phil Edwards, 21 Mar 2002. Copied from extratokens.c and
10 modified. */
12 #if 1
13 #if 0
14 #else foo /* { dg-bogus "extra tokens" "bad warning" } */
15 #endif / /* { dg-bogus "extra tokens" "bad warning" } */
16 #endif
18 # 36 "file.c" 3
20 /* ... but in a system header, it's acceptable. */
21 #ifdef KERNEL
22 #endif KERNEL /* { dg-bogus "extra tokens" "bad warning" } */