testsuite: Add -Wno-psabi to pr104505.c
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51628-13.c
blobb77e16c408f32f3e55fe6dfd9f954259ff72efdf
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 struct B { int i; };
6 struct C { struct B b; } __attribute__ ((packed));
8 int* h4 (struct C *p) { return &p->b.i; }
9 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */