]> git.lizzy.rs Git - rust.git/blob - tests/codegen/alloc-optimisation.rs
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / codegen / alloc-optimisation.rs
1 //
2 // no-system-llvm
3 // compile-flags: -O
4 #![crate_type="lib"]
5
6 #[no_mangle]
7 pub fn alloc_test(data: u32) {
8     // CHECK-LABEL: @alloc_test
9     // CHECK-NEXT: start:
10     // CHECK-NEXT: ret void
11     let x = Box::new(data);
12     drop(x);
13 }