gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c
raw| 1 | /* { dg-do compile { target powerpc*-*-darwin* } } */ |
| 2 | /* This test explicitly checks for output that expects common. */ |
| 3 | /* { dg-additional-options "-fcommon" { target powerpc*-*-darwin* } } */ |
| 4 | /* { dg-final { scan-assembler ".comm\[\t \]_x,12,2" } } */ |
| 5 | /* { dg-final { scan-assembler-not ".space 7" } } */ |
| 6 | /* PR 23071 */ |
| 7 | |
| 8 | struct Test { |
| 9 | double D __attribute__((packed,aligned(4))); |
| 10 | short X; |
| 11 | } x; |
| 12 | |
| 13 | struct { |
| 14 | char x; |
| 15 | struct Test t; |
| 16 | } b = { 1, { 2, 3 } }; |