2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 struct __attribute__ ((packed
)) A
{ int i
; };
10 int *p
= (int*)&b
.a
.i
;
11 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
13 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */