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

_Complex float f(void);
void *a;

_Complex float g(void)
{
  _Complex float x = f();
  __imag__ x = 1.0;
  if (__imag__ x != 1.0)
    {
      a = &x;
    }
  return x;
}