Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept88.C
blob9b57fddbf0a97a132aa16533fd239f9bf7286a8d
1 // { dg-options -Wsystem-headers }
3 #include <cstdlib>
4 #include <new>
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 }