mirror of
https://github.com/girlbossceo/jemallocator.git
synced 2024-11-28 05:44:18 +00:00
15 lines
299 B
Rust
15 lines
299 B
Rust
extern crate jemalloc_sys;
|
|
extern crate libc;
|
|
|
|
#[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)
|
|
}
|