blob: 2249d85098b7445daa236b150147b66d86649436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* PR c/51628. */
/* { dg-do compile } */
/* { dg-options "-O -Wno-incompatible-pointer-types" } */
struct B { int i; };
struct C { struct B b; } __attribute__ ((packed));
extern struct C *p;
long* g8 (void) { return p; }
/* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
|