OSDN Git Service

PR c++/43076
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr35746.c
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99" } */
3
4 int foo(int i);
5
6 void bar()
7 {
8   __complex__ int i;
9   X j;                  /* { dg-error "undeclared|expected" } */
10                         /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 9 } */
11   if (i = foo(j))       /* { dg-error "undeclared" } */
12     ;
13 }