Files

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

13 lines
382 B
Rust
Raw Permalink Normal View History

//@ compile-flags: -Copt-level=3
2022-09-10 11:33:44 +00:00
#![crate_type = "lib"]
2017-06-03 15:07:57 +03:00
#[no_mangle]
pub fn alloc_test(data: u32) {
// CHECK-LABEL: @alloc_test
// CHECK-NEXT: start:
// CHECK-NEXT: ; call __rustc::__rust_no_alloc_shim_is_unstable_v2
// CHECK-NEXT: tail call void @_R{{.+}}__rust_no_alloc_shim_is_unstable_v2()
2017-06-03 15:07:57 +03:00
// CHECK-NEXT: ret void
let x = Box::new(data);
drop(x);
}