gcc/gcc/testsuite/gcc.dg/fold-complex-1.c

11 lines
238 B
C

/* { dg-do compile } */
/* { dg-options "-O -ffast-math -fdump-tree-original" } */
_Complex float
foo (_Complex float x)
{
return __real x + 1.0iF * __imag x;
}
/* { dg-final { scan-tree-dump-times "COMPLEX_EXPR" 0 "original" } } */