blob: 82a72858255456cd31604ca8471c60965a3a57e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* 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;
}
|