summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-eqcmplx-1.c
blob: 6c8e05f25899e16d2280c50a2903d85fc5f000e8 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-original" } */

int foo(float x, float y)
{
  return (_Complex float)x == (_Complex float)y;
}

/* { dg-final { scan-tree-dump-times "x == y" 1 "original" } } */