2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
7 } __attribute__ ((packed
));
10 foo3 (struct A
*p1
, int *q1
, int *q2
, struct A
*p2
)
14 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
15 : (q2
? &p2
->i
: q2
));
16 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
20 foo4 (struct A
*p1
, int **q1
, int *q2
, int *q3
, struct A
*p2
)
24 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
27 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
29 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */