blob: adafb324c7f10a67324757e316ca794243481b44 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fno-exceptions" }
struct S { ~S(); };
extern void bar();
void f0()
{
S s;
bar();
}
void f1()
{
try {} catch (...) {} // { dg-error "" }
}
void f2()
#if __cplusplus <= 201402L
throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
#endif
{
bar();
}