* g++.dg/cpp1z/aligned-new7.C: Fix for small MAX_STACK_ALIGNMENT targets.
From-SVN: r241375
This commit is contained in:
parent
28df87300a
commit
916de0338d
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user