]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/alloc-optimisation.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / 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 }