1 // { dg-do compile } 2 #include <string> 3 4 void a() 5 #if __cplusplus <= 201402L 6 throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } 7 #endif 8 ; 9 void b(std::string const &); 10 c(std::string * e)11void c(std::string *e) 12 { 13 b(""); 14 15 try { 16 a(); 17 } catch (...) { 18 *e = ""; 19 } 20 } 21 d()22void d() { 23 c(0); 24 } 25