summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/complex-3.c
blob: f12a8f9da4ae175c685eb2eab260c76931a5022a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR 22116 */

void g(_Complex float);
_Complex float f(int data, _Complex float x, _Complex float y)
{
  _Complex float i, t;
  if (data) 
  {
    i = x +  __imag__ y;
    g(i);
  }
  else
    i = 5;
  t = x + __imag__ y;
  g(t);
  return t * i;
}