aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/fold-abs-1.c
blob: 2e69a207577ebe99d0d936c9c0da95c1753b7713 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-O1 -fwrapv" } */
#define ABS(x) (x > 0 ? x : -x)
int f (int a, int b) {
	if ((ABS(a) | b) != 0) return 1;
	else return 0;
}