Sign in
ara-mdk
/
platform
/
ndk
/
5d6dfdcee2d963f9e318122efa4ec4a70eacbd5d
/
.
/
tests
/
device
/
test-stlport_shared-exception
/
jni
/
p755a.cpp
blob: bc23d579e931b13d4a63d9013e5b45b76a95fb2a [
file
] [
log
] [
blame
]
// { dg-do run }
// It checks to see if you can define your own global delete operator.
// prms-id: 755
extern
"C"
void
_exit
(
int
);
void
operator
delete
(
void
*
p
)
throw
()
{
_exit
(
0
);
}
int
main
()
{
int
*
i
=
new
int
;
delete
i
;
return
1
;
}