diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wpadded.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wpadded.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wpadded.c b/gcc/testsuite/gcc.dg/Wpadded.c new file mode 100644 index 0000000..74376e5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wpadded.c @@ -0,0 +1,9 @@ +/* Source: EMC. */ + +/* { dg-do compile } */ +/* { dg-options "-Wpadded" } */ + +struct foo { + char bar; + long baz; /* { dg-warning "padding struct to align" } */ +} futz; |