7 void* operator new(std::size_t = 32) throw (std::bad_alloc); // { dg-error "first parameter" }
8 // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
9 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }
10 void* operator new[](std::size_t = 32) throw (std::bad_alloc); // { dg-error "first parameter" }
11 // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
12 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }
13 void* operator new(std::size_t = 32, const std::nothrow_t&) throw(); // { dg-error "first parameter" }
14 void* operator new[](std::size_t = 32, const std::nothrow_t&) throw(); // { dg-error "first parameter" }
20 void* operator new(std::size_t,
21 const std::nothrow_t& = std::nothrow_t()) throw();
22 void* operator new[](std::size_t,
23 const std::nothrow_t& = std::nothrow_t()) throw();
29 void* operator new(std::size_t = 0,
30 const std::nothrow_t& = std::nothrow_t()) throw(); // { dg-error "first parameter" }
31 void* operator new[](std::size_t = 0,
32 const std::nothrow_t& = std::nothrow_t()) throw(); // { dg-error "first parameter" }