gcc/testsuite/gcc.dg/torture/pr70985.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-std=gnu17" } */ |
| 3 | /* { dg-require-effective-target int32plus } */ |
| 4 | |
| 5 | struct |
| 6 | { |
| 7 | int f0:24; |
| 8 | } a, c, d; |
| 9 | |
| 10 | int b; |
| 11 | |
| 12 | int |
| 13 | fn1 () |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | void |
| 19 | fn2 () |
| 20 | { |
| 21 | int e; |
| 22 | if (b) |
| 23 | for (; e;) |
| 24 | { |
| 25 | d = c; |
| 26 | if (fn1 (b)) |
| 27 | b = a.f0; |
| 28 | } |
| 29 | } |