aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/new1.C
blob: 2f002db37c47edde81fdcd8ca22b6abf2f1992da (plain)
1
2
3
4
5
6
7
8
// PR c++/52216
// { dg-require-effective-target c++11 }

#include <new>

int n;

static_assert(!noexcept(::new (std::nothrow) int[n]), "");