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

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

int i;

void bar()
{
  i++;  /* { dg-bogus "undeclared" } */
}