]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/alloc-optimisation.rs
Rollup merge of #89865 - tmandry:llvm-static, r=Mark-Simulacrum
[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 }