aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/990506-0.c
blob: 901dfa1e23185d594e5d37ba921ebf82f7e110df (plain)
1
2
3
4
5
6
7
8
9
/* Verify that a diagnostic is issued without crashing due to
   --enable-checking catching a bug in the C front end.  */
/* { dg-do compile } */
x()
{
  foo (i);
  /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } .-1 } */
  /* { dg-message "function it appears in" "reminder message" { target *-*-* } .-2 } */ 
}