repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
unexpected1_x.C
blob
61361a68d9f643034ad562faa47f75f368710c19
1
#include <exception>
2
3
struct One { };
4
struct Two { };
5
6
extern "C" void abort ();
7
extern void doit (void) throw (Two);
8
extern void handle_unexpected (void);
9
10
void
11
unexpected1_x ()
12
{
13
std::set_unexpected (handle_unexpected);
14
15
try
16
{
17
doit ();
18
}
19
catch (Two &)
20
{
21
}
22
catch (...)
23
{
24
abort ();
25
}
26
}