Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr79408-2.c
blob696fb58231aa7ac89cce415dfc3049a7e48ea886
1 /* PR tree-optimization/79408 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 void link_error (void);
7 void
8 foo (unsigned int y)
10 if (y <= 7312)
11 return;
12 if (7312 % y != 7312)
13 link_error ();
16 void
17 bar (int x, int y)
19 if (y <= 7312)
20 return;
21 if (7312 % y != 7312)
22 link_error ();
25 void
26 baz (int x, int y)
28 if (y <= 7312)
29 return;
30 if (-7312 % y != -7312)
31 link_error ();
34 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */