Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51628-27.c
blob9ae1efd7afb8d380c7c934dafd1f1463a2172c5a
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 struct A { int i; } __attribute__ ((packed));
6 struct B { struct A a; };
7 struct C { struct B b; };
9 extern struct C *p;
11 int* g8 (void) { return &p->b.a.i; }
12 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */