repo.or.cz
/
android_tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git]
/
ndk
/
tests
/
device
/
test-stlport_static-exception
/
jni
/
eh34.cpp
blob
68fa673080a5e017baf67ed4e7d72f9b923e45da
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <exception>
5
#include <stdlib.h>
6
7
void
my_unexpected
() {
8
exit
(
0
);
9
}
10
11
void
foo
()
throw
() {
throw
"Hi"
; }
12
13
int
main
() {
14
std
::
set_unexpected
(
my_unexpected
);
15
foo
();
16
return
1
;
17
}