summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/if-4.c
blob: fbab9efc13bdac142f6997a2119a15f1e1196fd5 (plain)
1
2
3
4
5
6
7
8
/* 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;