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