☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
unexpected1_y.C
☽
☼
gcc/testsuite/g++.dg/compat/eh/unexpected1_y.C
code
plain
raw
1
// { dg-options "-std=c++98" }
2
3
struct One { };
4
struct Two { };
5
6
void
7
handle_unexpected ()
8
{
9
try
10
{
11
throw;
12
}
13
catch (One &)
14
{
15
throw Two ();
16
}
17
}
18
19
void
20
doit () throw (Two)
21
{
22
throw One ();
23
}