Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr71947-6.c
blob9463535c6ca1b2e74861209850097bf08bab7af5
1 /* This is highly dependent on branch costing, so make it opt-in. */
2 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
3 /* { dg-options "-O2 -fno-tree-vrp -fdump-tree-dom-details" } */
6 int f(int x, int y, int a, int b)
8 int ret = 10;
9 if (a == x
10 && b == y
11 && a == b)
12 ret = x - y;
14 return ret;
17 /* { dg-final { scan-tree-dump "Folded to: ret_\[0-9\]+ = 0;" "dom2" { xfail *-*-* } } } */