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