1 /* Ensure that -Waddress-of-packed-member doesn't emit notes when
2 suppressed via -w, rather than -Wno-address-of-packed-member. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-w" } */
6
7 struct a { /* { dg-bogus "defined here" } */
8 void *ptr;
9 } __attribute__((packed));
10
11 struct b { /* { dg-bogus "defined here" } */
12 void *ptr;
13 };
14
15 void
16 test (struct a *p)
17 {
18 struct b *q = (struct b *)p;
19 }