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