1 /* PR c/51628.  */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wno-incompatible-pointer-types" } */
4 
5 struct A {
6   int i;
7 } __attribute__ ((packed));
8 
f8(struct A * p)9 long* f8 (struct A *p) { return &p->i; }
10 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
11