OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr8927-1.c
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 "" } */
5
6 void
7 foo(void)
8 {
9   bar /* { dg-error "undeclared" } */
10     /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
11
12   ;
13 }