diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/darwin-abi-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-abi-1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/darwin-abi-1.c b/gcc/testsuite/gcc.dg/darwin-abi-1.c new file mode 100644 index 0000000..c7c0288 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-abi-1.c @@ -0,0 +1,12 @@ +/* { dg-do compile { target powerpc*-*-darwin* } } */ +/* { dg-options "-O" } */ +/* { dg-final { scan-assembler "li r3,12345\n\tbl " } } */ + +/* Check that zero-size structures don't affect parameter passing. */ + +struct empty { }; +extern void foo (struct empty e, int a); +void bar (void) { + struct empty e; + foo (e, 12345); +} |