gcc/testsuite/g++.dg/other/pr77759.C
raw| 1 | // PR target/77759 |
| 2 | // This ICEd in the 64-bit SPARC back-end because of the nested empty struct. |
| 3 | |
| 4 | // { dg-do compile } |
| 5 | |
| 6 | struct empty {}; |
| 7 | |
| 8 | struct pair_empty |
| 9 | { |
| 10 | struct empty a; |
| 11 | struct empty b; |
| 12 | }; |
| 13 | |
| 14 | extern void foo (int slot0, int slot1, int slot2, int slot3, int slot4, |
| 15 | int slot5, struct pair_empty pair); |
| 16 | |
| 17 | void bar (void) |
| 18 | { |
| 19 | struct pair_empty pair; |
| 20 | foo (0, 0, 0, 0, 0, 0, pair); |
| 21 | } |