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_shared-exception
/
jni
/
eh14.cpp
blob
2e788fa36754367834d098dde87a74317ececac7
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
class
arghh
{
5
public
:
6
int
n
;
7
arghh
(
int
v
) {
n
=
v
; }
8
};
9
10
int
main
() {
11
try
{
12
throw
arghh
(
11
);
13
}
14
catch
(
arghh
&
a
) {
15
if
(
a
.
n
!=
11
)
16
return
1
;
17
}
18
try
{
19
throw
arghh
(
22
);
20
}
21
catch
(
arghh
&
a
) {
22
if
(
a
.
n
!=
22
)
23
return
2
;
24
}
25
}