gcc/testsuite/gcc.target/i386/pr106303.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fno-inline-small-functions" } */ |
| 3 | |
| 4 | struct a { |
| 5 | int b; |
| 6 | int c; |
| 7 | int d; |
| 8 | int e; |
| 9 | } i, j; |
| 10 | int f, g, h; |
| 11 | struct a k() { |
| 12 | while (f) |
| 13 | i = j; |
| 14 | if (g) { |
| 15 | for (; h; h++) |
| 16 | i = j; |
| 17 | return j; |
| 18 | } |
| 19 | return i; |
| 20 | } |
| 21 | int main() { |
| 22 | k(); |
| 23 | return 0; |
| 24 | } |
| 25 |