gcc/testsuite/gcc.dg/torture/pr117859-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fno-ssa-phiopt -fno-expensive-optimizations" } */ |
| 3 | |
| 4 | /* PR tree-optimization/117859 */ |
| 5 | |
| 6 | unsigned char a; |
| 7 | int b, c, d, e, g, h, j, k; |
| 8 | struct { |
| 9 | int f : 1; |
| 10 | } i; |
| 11 | char l(int m) { return a > 255 >> m ? 0 : m; } |
| 12 | int main() { |
| 13 | if (i.f) |
| 14 | d = b; |
| 15 | k = e = 1; |
| 16 | for (; e; e--) |
| 17 | g = 0; |
| 18 | h = g ? 1 << g : 1; |
| 19 | c = h || i.f; |
| 20 | while (b) |
| 21 | j = l(k && i.f); |
| 22 | return 0; |
| 23 | } |