summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr35746.c
blob: 274f4a9682734faeaf3f9370796218d7f62a4748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

int foo(int i);

void bar()
{
  __complex__ int i;
  X j;			/* { dg-error "unknown" } */
  if (i = foo(j))
    ;
}