blob: 89e7e779b097fa627b603fca1ffbfa0ad4b17bb8 [file] [log] [blame]
//@ no-prefer-dynamic
#![crate_type = "rlib"]
extern crate custom;
use std::sync::atomic::{AtomicUsize, Ordering};
use custom::A;
#[global_allocator]
static ALLOCATOR: A = A(AtomicUsize::new(0));
pub fn get() -> usize {
ALLOCATOR.0.load(Ordering::SeqCst)
}