diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wpadded.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3063c52..39ccaf6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-05-21 David Taylor <dtaylor@emc.com> + + * gcc.dg/Wpadded.c: New file. + 2003-06-09 Mark Mitchell <mark@codesourcery.com> * gcc.dg/special/20000419-2.c: Fix dg-require-alias syntax. 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; |