gcc/testsuite
authorkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Aug 2014 09:59:34 +0000 (09:59 +0000)
committerkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Aug 2014 09:59:34 +0000 (09:59 +0000)
* Add forgotten file.

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

gcc/testsuite/gcc.target/i386/struct-size.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/struct-size.c b/gcc/testsuite/gcc.target/i386/struct-size.c
new file mode 100644 (file)
index 0000000..210fdbd
--- /dev/null
@@ -0,0 +1,11 @@
+/* { dg-do compile { target { *-*-linux* } } } */
+/* { dg-options "-Wno-pedantic" } */
+
+struct S {
+  int a;
+  int b[];
+} S;
+
+struct S s = { 1, { 2, 3 } };
+
+/* { dg-final { scan-assembler ".size\[\t \]*s, 12" } } */