Sign in
fuchsia
/
third_party
/
rust
/
ef0027897d2e9014766fb47dce9ddbb925d2f540
/
.
/
tests
/
codegen
/
issues
/
issue-101082.rs
blob: 550d267a98fa26799b6546e9a3670a45196a012a [
file
] [
log
] [
blame
]
//@ compile-flags: -O
#![
crate_type
=
"lib"
]
#[
no_mangle
]
pub
fn
test
()
->
usize
{
// CHECK-LABEL: @test(
// CHECK: ret {{i64|i32}} 165
let
values
=
[
23
,
16
,
54
,
3
,
60
,
9
];
let
mut
acc
=
0
;
for
item in values
{
acc
+=
item
;
}
acc
}