extern crate jemallocator;
extern crate jemalloc_sys;
#[global_allocator]
static A: jemallocator::Jemalloc = jemallocator::Jemalloc;
#[test]
fn smoke() {
unsafe {
let ptr = jemalloc_sys::malloc(4);
*(ptr as *mut u32) = 0xDECADE;
assert_eq!(*(ptr as *mut u32), 0xDECADE);
jemalloc_sys::free(ptr);
}
}