Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / cpp / endif-pedantic2.c
blobd5c6eb960e6cdac76cecd75eed132345a4cff13b
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-Wno-endif-labels -pedantic" } */
6 /* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c
7 for more general tests. */
9 /* Source: Phil Edwards, 25 Mar 2002. Copied from endif-pedantic1.c and
10 modified. */
12 #if 1
13 #if 0
14 #else foo /* { dg-error "extra tokens" "tokens after #else" } */
15 #endif / /* { dg-error "extra tokens" "tokens after #endif" } */
16 #endif