]> git.proxmox.com Git - rustc.git/blame - tests/run-make-fulldeps/std-core-cycle/bar.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / run-make-fulldeps / std-core-cycle / bar.rs
CommitLineData
0531ce1d
XL
1#![feature(allocator_api)]
2#![crate_type = "rlib"]
3
83c7162d 4use std::alloc::*;
0531ce1d
XL
5
6pub struct A;
7
83c7162d 8unsafe impl GlobalAlloc for A {
94b46f34 9 unsafe fn alloc(&self, _: Layout) -> *mut u8 {
0531ce1d
XL
10 loop {}
11 }
12
94b46f34 13 unsafe fn dealloc(&self, _ptr: *mut u8, _: Layout) {
0531ce1d
XL
14 loop {}
15 }
54a0048b 16}