Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
unexpected1_y.C
blob: 182b956c5f815a6cee215132e72faa5ce4379727 [
file
] [
log
] [
blame
]
// { dg-options "-std=c++98" }
struct
One
{
};
struct
Two
{
};
void
handle_unexpected
()
{
try
{
throw
;
}
catch
(
One
&)
{
throw
Two
();
}
}
void
doit
()
throw
(
Two
)
{
throw
One
();
}