gcc/testsuite/gcc.dg/ipa/pr120044-2.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3 -fno-early-inlining -fno-tree-fre -fno-tree-pre -fno-code-hoisting -fno-ipa-cp" } */ |
| 3 | |
| 4 | struct a { |
| 5 | int b; |
| 6 | } const c; |
| 7 | void d(char p, struct a e) { |
| 8 | while (e.b) |
| 9 | ; |
| 10 | } |
| 11 | static unsigned short f(const struct a g) { |
| 12 | d(g.b, g); |
| 13 | return g.b; |
| 14 | } |
| 15 | int main() { |
| 16 | return f(c); |
| 17 | } |