testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51628-35.c
bloba88c19ea0df0a32cba5cdf0dc2d95bba7bc292d7
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wcast-align=strict" } */
5 struct B { int i; };
6 struct C { struct B b; } __attribute__ ((packed));
8 extern struct C *p;
9 extern struct C *bar (void);
11 long *
12 foo1 (void)
14 return (long *) p;
15 /* { dg-warning "increases required alignment" "" { target { ! default_packed } } .-1 } */
18 long *
19 foo2 (void)
21 return (long *) bar ();
22 /* { dg-warning "increases required alignment" "" { target { ! default_packed } } .-1 } */