blob: 0edd5e7f84daa06b3a741a6fc9d0892e89a8777c [file] [log] [blame]
/* PR c/51628. */
/* { dg-do compile } */
/* { dg-options "-O" } */
struct B { int i; };
struct C { struct B b; } __attribute__ ((packed));
int* h4 (struct C *p) { return &p->b.i; }
/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */