diff options
author | Martin Sebor <msebor@redhat.com> | 2016-04-14 15:25:40 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-04-14 09:25:40 -0600 |
commit | 52fbb073e9310d2e1f83a4124a24ec83db1b6fd1 (patch) | |
tree | 3f5ea2d92140e0fc69236f8f38c346ec49308cd6 /gcc/testsuite/g++.dg | |
parent | e387fc6494396c13f68458c7e3ed94d492aca54f (diff) | |
download | gcc-52fbb073e9310d2e1f83a4124a24ec83db1b6fd1.zip gcc-52fbb073e9310d2e1f83a4124a24ec83db1b6fd1.tar.gz gcc-52fbb073e9310d2e1f83a4124a24ec83db1b6fd1.tar.bz2 |
g++.dg/cpp1y/vla11.C...
g++.dg/cpp1y/vla11.C: Avoid using attribute aligned to increase type
size to prevent failures on targets with very low maximum alignment.
From-SVN: r234976
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/vla11.C | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/vla11.C b/gcc/testsuite/g++.dg/cpp1y/vla11.C index af9624a..36609ab 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 <unsigned TypeSize> -struct alignas (TypeSize) TestType +union TestType { char data; + char padding [TypeSize]; }; // Test function invoked with a pointer to each test case. Must |