Sign in
android
/
toolchain
/
rustc
/
32f7835b4f844d645621e83c89a3178ef87b0d69
/
.
/
vendor
/
jemallocator
/
tests
/
usable_size.rs
blob: 6b8677beb40eacef436704da07a05733ac488b45 [
file
] [
log
] [
blame
]
extern
crate jemallocator
;
use
jemallocator
::
Jemalloc
;
#[
global_allocator
]
static
A
:
Jemalloc
=
Jemalloc
;
#[
test
]
fn
smoke
()
{
let
a
=
Box
::
new
(
3
_u32
);
assert
!(
unsafe
{
jemallocator
::
usable_size
(&*
a
)
}
>=
4
);
}