1 /* PR tree-optimization/79408 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 void link_error (void);
6
7 void
foo(unsigned int y)8 foo (unsigned int y)
9 {
10 if (y <= 7312)
11 return;
12 if (7312 % y != 7312)
13 link_error ();
14 }
15
16 void
bar(int x,int y)17 bar (int x, int y)
18 {
19 if (y <= 7312)
20 return;
21 if (7312 % y != 7312)
22 link_error ();
23 }
24
25 void
baz(int x,int y)26 baz (int x, int y)
27 {
28 if (y <= 7312)
29 return;
30 if (-7312 % y != -7312)
31 link_error ();
32 }
33
34 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
35