gcc/testsuite/g++.dg/abi/param1.C
raw| 1 | // { dg-do run } |
| 2 | // |
| 3 | |
| 4 | // Failed on powerpc64-linux for structure sizes > 64 and with size not a |
| 5 | // multiple of 8 after padding. |
| 6 | struct object |
| 7 | { |
| 8 | int i1; |
| 9 | char s1[60]; |
| 10 | int i2; |
| 11 | char s2[64]; |
| 12 | }; |
| 13 | |
| 14 | extern int subr (struct object obj); |
| 15 | |
| 16 | int main () |
| 17 | { |
| 18 | struct object obj; |
| 19 | |
| 20 | obj.i1 = 1234; |
| 21 | obj.i2 = 5678; |
| 22 | return subr (obj); |
| 23 | } |
| 24 | |
| 25 | int subr (struct object obj) |
| 26 | { |
| 27 | return obj.i1 != 1234 || obj.i2 != 5678; |
| 28 | } |