(root)/
gcc-13.2.0/
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 *-*-* } .-1 } */
      11  
      12    ;
      13  }