mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
8 lines
193 B
D
8 lines
193 B
D
// 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;
|
|
} |