aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/fold-complex-1.c
blob: a9ba0fd59c4d49851504ed9773df098064d87202 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { 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" } } */
/* { dg-final { cleanup-tree-dump "original" } } */