mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
e387fc6494
commit
52fbb073e9
|
|
@ -1,3 +1,9 @@
|
|||
2016-04-14 Martin Sebor <msebor@redhat.com>
|
||||
|
||||
* 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 <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/70623
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue