rust/tests/run-make-fulldeps/std-core-cycle/bar.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
274 B
Rust
Raw Normal View History

#![feature(allocator_api)]
#![crate_type = "rlib"]
use std::alloc::*;
pub struct A;
unsafe impl GlobalAlloc for A {
unsafe fn alloc(&self, _: Layout) -> *mut u8 {
loop {}
}
unsafe fn dealloc(&self, _ptr: *mut u8, _: Layout) {
loop {}
}
}