summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr51628-25.c
blob: 94a3a8fbaf2248e52b72b343e24b245a3bbb00aa (plain)
1
2
3
4
5
6
7
8
9
/* PR c/51628.  */
/* { dg-do compile } */
/* { dg-options "-O -Wno-incompatible-pointer-types" } */

struct B { int i; };
struct C { struct B b; } __attribute__ ((packed));

long* g8 (struct C *p) { return p; }
/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */