rt_gccstream/gcc/testsuite/gcc.dg/pr35746.c

14 lines
339 B
C

/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
int foo(int i);
void bar()
{
__complex__ int i;
X j; /* { dg-error "undeclared|expected" } */
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
if (i = foo(j)) /* { dg-error "undeclared" } */
;
}