1 /* { dg-do run { target *-*-linux* *-*-gnu* *-*-solaris* } } */
2 /* { dg-options -O2 } */
9 struct S
{ long x
__attribute__((packed
)); }; /* { dg-warning "attribute ignored" "" { target default_packed } } */
12 void foo (struct S
*s
)
19 size_t ps
= getpagesize ();
24 page
= (char *)(((__UINTPTR_TYPE__
)ptr
+ (ps
- 1)) & -ps
);
25 munmap (page
+ ps
, ps
);
27 s
= (struct S
*)(page
+ ps
- sizeof(struct S
));