Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr69615.c
blobf5c4d8a83dd1fc7d6c60b255e2c6e4c86c1ccffe
1 /* PR tree-optimization/69615 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-not " >= 0" "optimized" } } */
5 /* { dg-final { scan-tree-dump-not " < 0" "optimized" } } */
7 extern void foo (void);
9 void
10 bar (int z, unsigned int y)
12 long long x = z;
13 y &= 0xf;
14 if (x >= 0 && x < (int) y)
15 foo ();