2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr8927-1.c
blob85add6a4a9daaf38bc78b9d353aa4d0b92b544ad
1 /* Bug 8927: undeclared identifiers should give an error on the line
2 of that identifier, not on the line of the next token. */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 void
7 foo(void)
9 bar /* { dg-error "undeclared" } */
10 /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */