OSDN Git Service

From David Taylor.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 2003 23:04:50 +0000 (23:04 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jun 2003 23:04:50 +0000 (23:04 +0000)
* gcc.dg/Wpadded.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67685 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wpadded.c [new file with mode: 0644]

index 3063c52..39ccaf6 100644 (file)
@@ -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 (file)
index 0000000..74376e5
--- /dev/null
@@ -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;