diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/abi/param2.C')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/g++.dg/abi/param2.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/abi/param2.C b/gcc-4.8.1/gcc/testsuite/g++.dg/abi/param2.C new file mode 100644 index 000000000..d28387ab3 --- /dev/null +++ b/gcc-4.8.1/gcc/testsuite/g++.dg/abi/param2.C @@ -0,0 +1,19 @@ +// PR target/20795 +// Test passing aligned empty aggregate +// { dg-do compile } +// { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } + +struct S { union {} a; } __attribute__((aligned)); + +S +foo (S arg) +{ + return arg; +} + +void +bar (void) +{ + S arg; + foo (arg); +} |