blob: 0d99f93c6348af4e13f74927370116e2c55199ba [file] [log] [blame]
// { dg-do run }
#include <new>
void * operator new[](std::size_t, std::nothrow_t const &) throw()
{ return 0; }
struct X {
struct Inner { ~Inner() {} };
X() {
Inner * ic = new (std::nothrow) Inner[1]; // SegFault here
}
};
int main() {
X table;
}