2 // ICE on invalid operator new
3 // Origin: Flash Sheridan <flash@pobox.com>
8 void* operator new(__SIZE_TYPE__) throw(X); // { dg-error "expected|type" }
9 }; // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
10 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }