summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr88928.c
blob: c0a1f766cb0b992189a970218fe17e334293c4f1 (plain)
1
2
3
4
5
6
/* { dg-do compile } */
/* { dg-options "-Wno-pedantic -Waddress-of-packed-member" } */
struct a { } __attribute__((__packed__));
void c (struct a **);
void d (const struct a *b) { c ((struct a **) b); }
/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */