1 /* { dg-do compile {target *-*-darwin* } } */
2 /* { dg-options "-std=c99 -w" } */
4 /* This has been designed to give the same section usage for
5 -m32 and -m64 - so don't put any ints or longs in it ... */
7 /* A zero-sized object. */
8 typedef struct _empty
{} e_s
;
10 /* These should go in .comm */
13 /* { dg-final { scan-assembler ".comm\[\t \]_ub,1" } } */
14 /* { dg-final { scan-assembler ".comm\[\t \]_ea,1" } } */
16 /* These should go into .data */
19 /* { dg-final { scan-assembler ".globl _a.*.data.*.space\[\t \]1" } } */
20 /* { dg-final { scan-assembler ".globl _b.*.data.*.space\[\t \]2" } } */
22 /* These should go into __pu_bssN */
27 long long al_256
__attribute__((aligned (256))) = 0;
28 /* { dg-final { scan-assembler ".zerofill __DATA,__pu_bss3,_d,8,3" } } */
29 /* { dg-final { scan-assembler ".zerofill __DATA,__pu_bss2,_e,4,2" } } */
30 /* { dg-final { scan-assembler ".zerofill __DATA,__pu_bss3,_f,8,3" } } */
31 /* { dg-final { scan-assembler ".zerofill __DATA,__pu_bss4,_g,16,4" } } */
32 /* { dg-final { scan-assembler ".zerofill __DATA,__pu_bss8,_al_256,8,8" } } */
34 /* This should go into __zo_bss0 */
36 /* { dg-final { scan-assembler ".zerofill __DATA,__zo_bss0,_sea,1" } } */
38 /* These should go into .static_data */
41 /* { dg-final { scan-assembler ".static_data.*_sa:.*.space\[\t \]1" } } */
42 /* { dg-final { scan-assembler ".static_data.*_sb:.*.space\[\t \]2" } } */
44 /* These should go into _bssN */
48 static long double sg
;
49 static long long sal_256
__attribute__((aligned (2048)));
50 /* { dg-final { scan-assembler ".zerofill __DATA,__bss3,_sd,8,3" } } */
51 /* { dg-final { scan-assembler ".zerofill __DATA,__bss2,_se,4,2" } } */
52 /* { dg-final { scan-assembler ".zerofill __DATA,__bss3,_sf,8,3" } } */
53 /* { dg-final { scan-assembler ".zerofill __DATA,__bss4,_sg,16,4" } } */
54 /* { dg-final { scan-assembler ".zerofill __DATA,__bss11,_sal_256,8,11" } } */
72 return (long long) sd
+ b
;