// PR c++/17670// { dg-do run }#include<cstdlib>#include<new>boolabort_new;void*operatornew[](size_tbytes)throw(std::bad_alloc){if(abort_new)abort();returnoperatornew(bytes);}structX{};intmain(){// Do not abort until main is running in case startup code uses// operator new[].abort_new=true;new(X);}