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