OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / fold-abs-4.c
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple -fwrapv" } */
3 extern float fabsf (float);
4 extern float cabsf (_Complex float);
5
6 int f (float a) {
7         return fabsf(a) < 0.0;
8 }
9
10 int g (_Complex float a) {
11         return cabsf (a) < 0.0;
12 }
13
14 /* { dg-final { scan-tree-dump-times "ABS" 0 "gimple" } } */
15 /* { dg-final { cleanup-tree-dump "gimple" } } */