1 // { dg-options -Wsystem-headers }
6 void *operator new (std::size_t) throw (std::bad_alloc); // { dg-line decl }
7 // { dg-error "dynamic exception spec" "" { target c++17 } decl }
8 // { dg-warning "dynamic exception spec" "" { target { c++11 && { ! c++17 } } } decl }
9 // { dg-warning "different exception spec" "" { target { c++11 && { ! c++17 } } } decl }