Sign in
fuchsia
/
third_party
/
rust
/
ab1a3f09fd3e1dbce850b9e1b691dc8338584e65
/
.
/
src
/
test
/
codegen
/
alloc-optimisation.rs
blob: c3ffaeb9547b3c20a43168cc88d3aed04cbb29d3 [
file
] [
log
] [
blame
]
//
// 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
);
}