From: Jason Merrill Date: Thu, 20 Oct 2016 13:47:25 +0000 (-0400) Subject: * g++.dg/cpp1z/aligned-new7.C: Fix for small MAX_STACK_ALIGNMENT targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=916de0338db83c16c07108f35f1748daf3830d7f;p=gcc.git * g++.dg/cpp1z/aligned-new7.C: Fix for small MAX_STACK_ALIGNMENT targets. From-SVN: r241375 --- diff --git a/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C b/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C index e12db9b9fad..695b77f80b1 100644 --- a/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C +++ b/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C @@ -8,8 +8,9 @@ struct X alignas(2*__STDCPP_DEFAULT_NEW_ALIGNMENT__) int i; }; +alignas(alignof(X)) char buf[sizeof(X)]; + int main() { - alignas(alignof(X)) char buf[sizeof(X)]; ::new((void*)buf) X{1}; }