2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr46364.C
blob40fd2f0760f20369c47654987a90897d5abd1529
1 // { dg-do compile }
2 #include <string>
4 void a()
5 #if __cplusplus <= 201402L
6 throw (int)                     // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
7 #endif
9 void b(std::string const &);
11 void c(std::string *e)
13   b("");
15   try {
16       a();
17   } catch (...) {
18       *e = "";
19   }
22 void d() {
23     c(0);