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
diagnostics: avoid using global_dc in path-printing
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
unexpected1_x.C
blob
e8f87f1bc42980ae76790886da754dffd8739b9a
1
// { dg-options "-std=c++98" }
2
3
#include <exception>
4
5
struct One { };
6
struct Two { };
7
8
extern "C" void abort ();
9
extern void doit (void) throw (Two);
10
extern void handle_unexpected (void);
11
12
void
13
unexpected1_x ()
14
{
15
std::set_unexpected (handle_unexpected);
16
17
try
18
{
19
doit ();
20
}
21
catch (Two &)
22
{
23
}
24
catch (...)
25
{
26
abort ();
27
}
28
}