repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
libstdc++-v3
/
testsuite
/
18_support
/
14026.cc
blob
103ac64a9d70ace38f258b111d99a66b47f06382
1
// PR 14026
2
// 18.6.4 uncaught_exception
3
4
#include <cstdlib>
5
#include <exception>
6
#include <testsuite_hooks.h>
7
8
static void
9
no_uncaught
()
10
{
11
if
(
std
::
uncaught_exception
())
12
abort
();
13
}
14
15
int
16
main
()
17
{
18
try
19
{
20
throw
1
;
21
}
22
catch
(...)
23
{
24
try
25
{
26
throw
;
27
}
28
catch
(...)
29
{
30
no_uncaught
();
31
}
32
}
33
no_uncaught
();
34
}