gcc/testsuite/gcc.c-torture/execute/pr114552.c
raw| 1 | /* PR middle-end/114552 */ |
| 2 | |
| 3 | struct __attribute__((packed)) S { short b; int c; }; |
| 4 | struct T { struct S b; int e; }; |
| 5 | static const struct T k = { { 1, 0 }, 0 }; |
| 6 | |
| 7 | __attribute__((noinline)) void |
| 8 | foo (void) |
| 9 | { |
| 10 | asm volatile ("" : : : "memory"); |
| 11 | } |
| 12 | |
| 13 | __attribute__((noinline)) void |
| 14 | bar (struct S n) |
| 15 | { |
| 16 | foo (); |
| 17 | } |
| 18 | |
| 19 | int |
| 20 | main () |
| 21 | { |
| 22 | bar (k.b); |
| 23 | return 0; |
| 24 | } |