gcc/testsuite/gcc.target/aarch64/aapcs64/ice_1.c
raw| 1 | /* Test AAPCS layout |
| 2 | |
| 3 | Empty, i.e. zero-sized, small struct passing used to cause Internal Compiler |
| 4 | Error. */ |
| 5 | |
| 6 | /* { dg-do compile { target aarch64*-*-* } } */ |
| 7 | |
| 8 | struct AAAA |
| 9 | { |
| 10 | |
| 11 | } aaaa; |
| 12 | |
| 13 | |
| 14 | void named (int, struct AAAA); |
| 15 | void unnamed (int, ...); |
| 16 | |
| 17 | void foo () |
| 18 | { |
| 19 | named (0, aaaa); |
| 20 | unnamed (0, aaaa); |
| 21 | } |