testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51628-29.c
blob1ad9a7d2d9f630f0f2a33365e16cfe433b1a476b
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 struct A { int i; };
6 struct B { struct A a; };
7 struct C { struct B b __attribute__ ((packed)); };
8 /* { dg-warning "attribute ignored" "" { target default_packed } .-1 } */
10 extern struct C *p;
12 int*
13 g8 (void)
15 return &p->b.a.i;
16 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */