From: msebor Date: Thu, 14 Apr 2016 15:25:40 +0000 (+0000) Subject: g++.dg/cpp1y/vla11.C: Avoid using attribute aligned to increase type X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e74b0254e9067dfd66c38fbb2ceaa584463f3da;p=thirdparty%2Fgcc.git g++.dg/cpp1y/vla11.C: Avoid using attribute aligned to increase type size to prevent failures on targets with very low maximum alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234976 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c2a4c9320920..b7c5d3c632ce 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-04-14 Martin Sebor + + * g++.dg/cpp1y/vla11.C: Avoid using attribute aligned to increase + type size to prevent failures on targets with very low maximum + alignment. + 2016-04-14 Richard Biener PR tree-optimization/70623 diff --git a/gcc/testsuite/g++.dg/cpp1y/vla11.C b/gcc/testsuite/g++.dg/cpp1y/vla11.C index af9624a404b9..36609abe53bc 100644 --- a/gcc/testsuite/g++.dg/cpp1y/vla11.C +++ b/gcc/testsuite/g++.dg/cpp1y/vla11.C @@ -86,9 +86,10 @@ sink (void *p, int line, bool expect, const char *expr) // that the checking code can deal with templates (i.e., completes // the element type of the VLA when necessary). template -struct alignas (TypeSize) TestType +union TestType { char data; + char padding [TypeSize]; }; // Test function invoked with a pointer to each test case. Must