This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / Wpadded.c
blobe55fd113f7576d67822331ec9f057bb5f22701d1
1 /* Source: EMC. */
3 /* { dg-do compile } */
4 /* -fpack-struct is necessary because the warning expected requires the initial
5 packing to be larger than 1, which cannot ge guaranteed for all targets. */
6 /* { dg-options "-Wpadded -fpack-struct=8" } */
8 struct foo {
9 char bar;
10 long baz; /* { dg-warning "padding struct to align" } */
11 } futz;