Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
df27a15b575a0d93332724583b9a6c43cde07d95
/
.
/
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
;
}