aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/if-4.c
blob: 84764fbf0f62d93a2de0124b789aeb537880df59 (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 allowed" "+= in if" } */
syntax_error
#endif
int foo;