]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite
authorKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 7 Aug 2014 09:59:34 +0000 (09:59 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 7 Aug 2014 09:59:34 +0000 (09:59 +0000)
* Add forgotten file.

From-SVN: r213702

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" } } */