blob: 82a72858255456cd31604ca8471c60965a3a57e7 [file] [log] [blame]
/* Ensure that -Waddress-of-packed-member doesn't emit notes when
suppressed via -w, rather than -Wno-address-of-packed-member. */
/* { dg-do compile } */
/* { dg-options "-w" } */
struct a { /* { dg-bogus "defined here" } */
void *ptr;
} __attribute__((packed));
struct b { /* { dg-bogus "defined here" } */
void *ptr;
};
void
test (struct a *p)
{
struct b *q = (struct b *)p;
}