gcc/testsuite/gcc.c-torture/execute/pr58570.c
raw| 1 | /* { dg-require-effective-target int32plus } */ |
| 2 | #pragma pack(1) |
| 3 | struct S |
| 4 | { |
| 5 | int f0:15; |
| 6 | int f1:29; |
| 7 | }; |
| 8 | |
| 9 | int e = 1, i; |
| 10 | static struct S d[6]; |
| 11 | |
| 12 | int |
| 13 | main (void) |
| 14 | { |
| 15 | if (e) |
| 16 | { |
| 17 | d[i].f0 = 1; |
| 18 | d[i].f1 = 1; |
| 19 | } |
| 20 | if (d[0].f1 != 1) |
| 21 | __builtin_abort (); |
| 22 | return 0; |
| 23 | } |