Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
bd147bee66250140d2792c45d80062b720e1b387
/
.
/
examples
/
d
/
Sum_over_array.d
blob: 726fd3547cd964c3424907e3a05f3d63c9aa0654 [
file
] [
log
] [
blame
] [
raw
]
// Hint: Try to compile with -O3 -release -boundscheck=off -mcpu=native
int
testFunction
(
int
[]
input
)
{
int
sum
=
0
;
foreach
(
elem
;
input
)
{
sum
+=
elem
;
}
return
sum
;
}