summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c
blob: 5f5764368c1ebe4ef5966e0a8d2b7ddd9b9c5b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-final { scan-assembler ".comm\[\t \]_x,12,2" } } */
/* { dg-final { scan-assembler-not ".space 7" } } */
/* PR 23071 */

struct Test {
  double D __attribute__((packed,aligned(4)));
  short X;
} x;

struct {
  char x;
  struct Test t;
} b = { 1, { 2, 3 } };