Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr20470.c
blob97015110a598155183c582291a8543b5686af7c6
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 /* PR tree-optimization/20470:
5 Missing fold to abs(x) when x == MINUS_EXPR. */
6 #define abs(x) ((x) >= 0 ? (x) : -(x))
8 int i,j,k;
9 void f1()
11 i = abs(j-k);
14 /* { dg-final { scan-tree-dump-times "ABS_EXPR" 1 "gimple" } } */