gcc/testsuite/gcc.c-torture/execute/pr70602.c
raw| 1 | /* PR tree-optimization/70602 */ |
| 2 | /* { dg-require-effective-target int32plus } */ |
| 3 | |
| 4 | struct __attribute__((packed)) S |
| 5 | { |
| 6 | int s : 1; |
| 7 | int t : 20; |
| 8 | }; |
| 9 | |
| 10 | int a, b, c; |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | for (; a < 1; a++) |
| 16 | { |
| 17 | struct S e[] = { {0, 9}, {0, 9}, {0, 9}, {0, 0}, {0, 9}, {0, 9}, {0, 9}, |
| 18 | {0, 0}, {0, 9}, {0, 9}, {0, 9}, {0, 0}, {0, 9}, {0, 9}, |
| 19 | {0, 9}, {0, 0}, {0, 9}, {0, 9}, {0, 9}, {0, 0}, {0, 9} }; |
| 20 | b = b || e[0].s; |
| 21 | c = e[0].t; |
| 22 | } |
| 23 | return 0; |
| 24 | } |