Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wterminate1.C
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
(...)
{}
}