blob: 40fd2f0760f20369c47654987a90897d5abd1529 [file] [log] [blame]
// { dg-do compile }
#include <string>
void a()
#if __cplusplus <= 201402L
throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
#endif
;
void b(std::string const &);
void c(std::string *e)
{
b("");
try {
a();
} catch (...) {
*e = "";
}
}
void d() {
c(0);
}