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