Sign in
ara-mdk
/
platform
/
ndk
/
f4f10df3fdd08ef9f466d9b54953c1ba3e64827b
/
.
/
tests
/
device
/
test-stlport_static-exception
/
jni
/
eh16.cpp
blob: ff5aad8ee69ea10add7c959eca32b843d04edb8e [
file
] [
log
] [
blame
]
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int
err
=
1
;
struct
A
{
~
A
()
{
--
err
;
}
};
struct
B
{
A a
;
B
()
{
throw
1
;
}
};
int
main
()
{
try
{
B b
;
}
catch
(...)
{
return
err
;
}
return
1
;
}