]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/alloc-optimisation.rs
Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=wesleywiser
[rust.git] / src / test / codegen / alloc-optimisation.rs
1 //
2 // no-system-llvm
3 // min-llvm-version: 10.0.1
4 // compile-flags: -O
5 #![crate_type="lib"]
6
7 #[no_mangle]
8 pub fn alloc_test(data: u32) {
9     // CHECK-LABEL: @alloc_test
10     // CHECK-NEXT: start:
11     // CHECK-NEXT: ret void
12     let x = Box::new(data);
13     drop(x);
14 }