Sign in
ara-mdk
/
platform
/
ndk
/
887d3eb6adaa18a3fa45290cf7fcabfcb223512d
/
.
/
tests
/
device
/
test-stlport_shared-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
;
}