Allow to add kotlin tests to the D8 test infrastructure
- Update kotlin stdlib to 1.2.0 to be align with the kotlin compiler used.
Change-Id: Ib40b7d0f8a4981afe9c4fd314c75aa288005dd81
diff --git a/src/test/examplesKotlin/loops/Loop.kt b/src/test/examplesKotlin/loops/Loop.kt
new file mode 100644
index 0000000..928dec8
--- /dev/null
+++ b/src/test/examplesKotlin/loops/Loop.kt
@@ -0,0 +1,14 @@
+// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+package loops
+
+fun loopOnArray(array: Array<Int>) {
+ for (i in array) {
+ println(i)
+ }
+}
+
+fun main(args: Array<String>) {
+ loopOnArray(arrayOf(1, 2, 3, 4, 5))
+}
\ No newline at end of file