summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/parse-error-1.c
blob: 704786f4f1389a5f86f9ae9971bb63237ec969be (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/28649 */
/* { dg-do compile } */

void foo()
{
   +;  /* { dg-error "expected expression" } */
   +;  /* { dg-error "expected expression" } */
}

int +;  /* { dg-error "expected identifier" } */