Message ID | 51A0A881.6020005@oracle.com |
---|---|
State | New |
Headers | show |
Index: g++.dg/cpp0x/new1.C =================================================================== --- g++.dg/cpp0x/new1.C (revision 0) +++ g++.dg/cpp0x/new1.C (working copy) @@ -0,0 +1,8 @@ +// PR c++/52216 +// { dg-require-effective-target c++11 } + +#include <new> + +int n; + +static_assert(!noexcept(::new (std::nothrow) int[n]), "");