Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
);
}