Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
13
tests/codegen/alloc-optimisation.rs
Normal file
13
tests/codegen/alloc-optimisation.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
//
|
||||
// no-system-llvm
|
||||
// compile-flags: -O
|
||||
#![crate_type="lib"]
|
||||
|
||||
#[no_mangle]
|
||||
pub fn alloc_test(data: u32) {
|
||||
// CHECK-LABEL: @alloc_test
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: ret void
|
||||
let x = Box::new(data);
|
||||
drop(x);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue