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