summaryrefslogtreecommitdiffstats
path: root/tests/run-make/std-core-cycle/bar.rs
blob: 9f5e7c29bddd70e15bb6916767d147b23c3eee3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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 {}
    }
}