summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr35746.c
blob: c04053f596fc6e81665133f0a6c5317982cb7a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { 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" } */
    ;
}