From: Kirill Yukhin Date: Thu, 7 Aug 2014 09:59:34 +0000 (+0000) Subject: gcc/testsuite X-Git-Tag: releases/gcc-5.1.0~5614 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66b5e890ec57bcd04ccde2b69cdd88810697667e;p=thirdparty%2Fgcc.git gcc/testsuite * Add forgotten file. From-SVN: r213702 --- diff --git a/gcc/testsuite/gcc.target/i386/struct-size.c b/gcc/testsuite/gcc.target/i386/struct-size.c new file mode 100644 index 000000000000..210fdbde893e --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/struct-size.c @@ -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" } } */