gcc/testsuite/gcc.dg/pr88928.c
raw| 1 | /* { dg-do compile { target { ! default_packed } } } */ |
| 2 | /* { dg-options "-Wno-pedantic -Waddress-of-packed-member -Wcast-align=strict" } */ |
| 3 | struct a { } __attribute__((__packed__)); |
| 4 | void c (struct a **); |
| 5 | void d (const struct a *b) { c ((struct a **) b); } |
| 6 | /* { dg-warning "increases required alignment" "" { target *-*-* } .-1 } */ |