1119482Sobrien/* Copyright (C) 2002 Free Software Foundation, Inc. */ 238465Smsmith 338465Smsmith/* { dg-do preprocess } */ 438465Smsmith/* { dg-options "-Wno-endif-labels -pedantic-errors" } */ 538465Smsmith 638465Smsmith/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c 738465Smsmith for more general tests. */ 838465Smsmith 938465Smsmith/* Source: Phil Edwards, 25 Mar 2002. Copied from endif-pedantic1.c and 1038465Smsmith modified. */ 1138465Smsmith 1238465Smsmith#if 1 1338465Smsmith#if 0 1438465Smsmith#else foo /* { dg-error "extra tokens" "tokens after #else" } */ 1538465Smsmith#endif / /* { dg-error "extra tokens" "tokens after #endif" } */ 1638465Smsmith#endif 1738465Smsmith 1838465Smsmith