2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
9 } __attribute__((packed
, aligned (4)));
11 extern struct pair_t p
;
13 extern void bar (int *);
16 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
21 struct pair_t arr
[2] = { { 1, 10 }, { 2, 20 } };
24 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
27 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
30 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
32 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
34 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */