gcc/testsuite/gcc.target/or1k/args-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct a { |
| 5 | long x; |
| 6 | long y; |
| 7 | long z; |
| 8 | }; |
| 9 | |
| 10 | int passlibstruct (int b, struct a aa); |
| 11 | |
| 12 | int main() { |
| 13 | struct a aa = { 55, 66, 77 }; |
| 14 | |
| 15 | return passlibstruct(-1, aa); |
| 16 | } |
| 17 | |
| 18 | /* Ensure we pass a stack reference in the second arg. */ |
| 19 | /* { dg-final { scan-assembler-times "r4, r1, " 1 } } */ |