Revert "c++: Speed up compilation of large char array initializers when not using...
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51628-16.c
blobb02cd8df1fc7f3b0857680d21efb2d3a12fb12b3
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
5 struct __attribute__ ((packed)) A { int i; };
6 struct B {
7 struct A a;
8 } b;
10 int *p = (int*)&b.a.i;
11 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */
12 int *q = (int*)&b.a;
13 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */