repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
unexpected1_y.C
blob
182b956c5f815a6cee215132e72faa5ce4379727
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
}