gcc/testsuite/gcc.c-torture/compile/20161124-1.c
raw| 1 | /* PR middle-end/78429 */ |
| 2 | /* Testcase by Chengnian Sun <[email protected]> */ |
| 3 | |
| 4 | int a[6]; |
| 5 | char b; |
| 6 | unsigned c; |
| 7 | short d; |
| 8 | volatile int e; |
| 9 | |
| 10 | int foo (void) |
| 11 | { |
| 12 | int f; |
| 13 | for (; c <= 2; c++) { |
| 14 | d = 3; |
| 15 | for (; d >= 0; d--) { |
| 16 | int g = b; |
| 17 | f = a[d] || b; |
| 18 | } |
| 19 | f || e; |
| 20 | } |
| 21 | return 0; |
| 22 | } |