Sign in
ara-mdk
/
platform
/
ndk
/
0487d5b856a28a204b6624ab56b30c082bab6be7
/
.
/
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
;
}