1// { dg-do run }
2
3#include <new>
4
5void * operator new[](size_t, std::nothrow_t const &) throw()
6{ return NULL; }
7
8struct X {
9    struct Inner { ~Inner() {} };
10
11    X() {
12      Inner * ic = new (std::nothrow) Inner[1]; // SegFault here
13    }
14};
15
16int main() {
17   X table;
18}
19