Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-4.c
blob178ebda47587ebf1efe5634971effbaf4f28a277
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized-details-blocks" } */
4 /* Testcase extracted from PR15353. */
6 extern void bar(void);
8 void foo (int x, int a)
10 /* if ((x < a) || (x != a)) return; else bar (); */
11 if (x < a)
12 return;
13 if (x != a)
14 return;
16 /* else */
17 bar ();
20 /* { dg-final { scan-tree-dump "!=" "optimized" } } */
21 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */