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