8sa1-gcc/gcc/testsuite/gcc.dg/990506-0.c
1999-11-05 09:58:18 +00:00

10 lines
341 B
C

/* 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 *-*-* } { 6 } } */
/* { dg-error "function it appears in" "reminder message" { target *-*-* } { 6 } } */
}