diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 62039a1ce83..70f78195176 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -419,4 +419,10 @@ task array_list1(type: RunKonanTest) { goldValue = "OK\n" source = "runtime/collections/array_list1.kt" } +/* +task moderately_large_array(type: RunKonanTest) { + goldValue = "OK\n" + source = "runtime/collections/moderately_large_array.kt" +} +*/ diff --git a/backend.native/tests/runtime/collections/moderately_large_array.kt b/backend.native/tests/runtime/collections/moderately_large_array.kt new file mode 100644 index 00000000000..f10bb2a2481 --- /dev/null +++ b/backend.native/tests/runtime/collections/moderately_large_array.kt @@ -0,0 +1,12 @@ + +fun main(args: Array) { + val a = ByteArray(1000000) + + var sum = 0 + for (b in a) { + sum += b + } + + println(sum) +} +