summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/darwin-abi-1.c
blob: 3b13c6236b16139de4aec70c5e8eb808f342e3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler "li r3,12345\n\t(bl|jbsr) " } } */

/* 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);
}