aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr8927-1.c
blob: 85add6a4a9daaf38bc78b9d353aa4d0b92b544ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Bug 8927: undeclared identifiers should give an error on the line
   of that identifier, not on the line of the next token.  */
/* { dg-do compile } */
/* { dg-options "" } */

void
foo(void)
{
  bar /* { dg-error "undeclared" } */
    /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */

  ;
}