gcc/testsuite/gcc.dg/tree-ssa/pr80898.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct S0 { |
| 5 | __INT32_TYPE__ f0 : 24; |
| 6 | __INT32_TYPE__ f1; |
| 7 | __INT32_TYPE__ f74; |
| 8 | } a, *c = &a; |
| 9 | struct S0 fn1() { |
| 10 | struct S0 b = {4, 3}; |
| 11 | return b; |
| 12 | } |
| 13 | |
| 14 | int main() { |
| 15 | *c = fn1(); |
| 16 | |
| 17 | if (a.f1 != 3) |
| 18 | __builtin_abort (); |
| 19 | return 0; |
| 20 | } |