Debian Codegraph @

gcc/testsuite/g++.dg/abi/param2.C

raw
1 // PR target/20795
2 // Test passing aligned empty aggregate
3 // { dg-do compile }
4 // { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
5
6 struct S { union {} a; } __attribute__((aligned));
7
8 S
9 foo (S arg)
10 {
11 return arg;
12 }
13
14 void
15 bar (void)
16 {
17 S arg;
18 foo (arg);
19 }