gcc/testsuite/g++.dg/cpp0x/noexcept88.C
raw| 1 | // { dg-options -Wsystem-headers } |
| 2 | |
| 3 | #include <cstdlib> |
| 4 | #include <new> |
| 5 | |
| 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 } |