Debian Codegraph @

gcc/testsuite/g++.dg/eh/new2.C

raw
1 // PR c++/104007
2 // { dg-do run }
3
4 extern "C" void abort();
5 #include <new>
6
7 struct S { ~S() { abort(); } };
8 int main() {
9 new (std::nothrow) S[1];
10 }