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