gcc/testsuite/gcc.dg/torture/pr84830.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-fno-tree-ch -fno-tree-vrp" } */ |
| 3 | |
| 4 | int x0; |
| 5 | |
| 6 | void |
| 7 | br (int yp, int oo) |
| 8 | { |
| 9 | int *qi = &yp; |
| 10 | |
| 11 | if (oo == 0) |
| 12 | { |
| 13 | g8: |
| 14 | if (x0 != 0) |
| 15 | x0 = yp; |
| 16 | else if (oo != 0) |
| 17 | x0 = yp; |
| 18 | |
| 19 | if (x0 == 0) |
| 20 | { |
| 21 | *qi = 0; |
| 22 | x0 = *qi; |
| 23 | } |
| 24 | |
| 25 | if (x0 != 0) |
| 26 | { |
| 27 | ++oo; |
| 28 | goto g8; |
| 29 | } |
| 30 | |
| 31 | if (yp == oo) |
| 32 | yp += !!oo; |
| 33 | } |
| 34 | else |
| 35 | { |
| 36 | x0 = 1; |
| 37 | while (x0 < 2) |
| 38 | { |
| 39 | qi = &oo; |
| 40 | ++oo; |
| 41 | x0 = 1; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | goto g8; |
| 46 | } |