Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
vendor
/
jemalloc-sys-0.5.3+5.3.0-patched
/
tests
/
unprefixed_malloc.rs
blob: 07317123a8b164fbbc5f24b4e21fc4e745feaafb [
file
] [
log
] [
blame
] [
edit
]
#[
cfg
(
prefixed
)]
#[
test
]
fn
malloc_is_prefixed
()
{
assert_ne
!(
jemalloc_sys
::
malloc
as
usize
,
libc
::
malloc
as
usize
)
}
#[
cfg
(
not
(
prefixed
))]
#[
test
]
fn
malloc_is_overridden
()
{
assert_eq
!(
jemalloc_sys
::
malloc
as
usize
,
libc
::
malloc
as
usize
)
}