rt_gccstream/gcc/testsuite/gcc.dg/cpp/if-4.c

9 lines
238 B
C

/* Regression test for proper error message. The token name isn't
NUL terminated, so we would print garbage after it. */
/* { dg-do compile } */
#if 1 += 2 /* { dg-error "is not valid" "+= in if" } */
syntax_error
#endif
int foo;