summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/complex-5.c
blob: dec394a5f2d7fcf89cedbdc4595d33300c17ece8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-dce -fdump-tree-optimized" } */
_Complex int t = 0;
int f(void)
{
  t = 0;
 __real__ t = 2;
 __imag__ t = 2;
}

/* { dg-final { scan-tree-dump-times "__complex__" 0 "optimized" { xfail *-*-* } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */