c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr79408.c
blob2ea24f432a6d9a07e80d8fb01e7fa33d2d23f789
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 x, unsigned int y)
10 if (x > 7312)
11 return;
12 if (y <= 7312)
13 return;
14 if (x % y != x)
15 link_error ();
18 void
19 bar (int x, int y)
21 if (x > 7312 || x < 0)
22 return;
23 if (y <= 7312)
24 return;
25 if (x % y != x)
26 link_error ();
29 void
30 baz (int x, int y)
32 if (x > 7312 || x < -7312)
33 return;
34 if (y <= 7312)
35 return;
36 if (x % y != x)
37 link_error ();
40 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */