gcc/testsuite/gcc.dg/pr106278.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | void __assert_fail(); |
| 4 | struct a { |
| 5 | int b; |
| 6 | int c; |
| 7 | int d; |
| 8 | int : 2; |
| 9 | }; |
| 10 | int e, f; |
| 11 | struct a g, i; |
| 12 | const struct a h; |
| 13 | int main() { |
| 14 | struct a j; |
| 15 | g = h; |
| 16 | if (e) |
| 17 | __assert_fail(); |
| 18 | if (f) |
| 19 | j = h; |
| 20 | i = j; |
| 21 | return 0; |
| 22 | } |