blob: affb48d3e8ac31cea1ad15189fc62dbd2d7c5046 [file] [log] [blame]
// In C++98 mode this gets a -Wc++11-compat warning, in C++11 mode a
// -Wterminate warning.
// { dg-options "-Wall" }
struct A
{
~A()
{
throw 1; // { dg-warning "terminate" }
}
};
int main()
{
try { A a; }
catch (...) {}
}