summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-abs-3.c
blob: d151a8d7aec0cd60424b5d53f8fdddd3e1656233 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple -fwrapv" } */
#define ABS(x) (x > 0 ? x : -x)
int f (int a) {
	return ABS (ABS(a));
}

/* { dg-final { scan-tree-dump-times "ABS" 1 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */