* g++.dg/cpp1z/aligned-new7.C: Fix for small MAX_STACK_ALIGNMENT targets.

From-SVN: r241375
This commit is contained in:
Jason Merrill 2016-10-20 09:47:25 -04:00
parent 28df87300a
commit 916de0338d

View File

@ -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};
}