diff options
author | David Taylor <dtaylor@emc.com> | 2003-06-09 23:04:50 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2003-06-09 16:04:50 -0700 |
commit | 22597a82ee205a8640b812d29d12811b6a8b6e07 (patch) | |
tree | 038476dd4bd5e94986726815d88ed400098b4f27 /gcc | |
parent | 64c2816fa14bf44175c637be9e58d65f3aa5db55 (diff) | |
download | gcc-22597a82ee205a8640b812d29d12811b6a8b6e07.zip gcc-22597a82ee205a8640b812d29d12811b6a8b6e07.tar.gz gcc-22597a82ee205a8640b812d29d12811b6a8b6e07.tar.bz2 |
From David Taylor.
* gcc.dg/Wpadded.c: New file.
From-SVN: r67685
Diffstat (limited to 'gcc')
-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; |