[JS IR BE] Add KJS_WITH_FULL_RUNTIME directive to compiler tests

This commit is contained in:
Svyatoslav Kuzmich
2019-01-20 01:31:02 +03:00
parent 185d0c6165
commit aa811dcfb3
500 changed files with 500 additions and 0 deletions
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
operator fun ArrayList<String>.get(index1: Int, index2: Int) = this[index1 + index2]
operator fun ArrayList<String>.set(index1: Int, index2: Int, elem: String) {
this[index1 + index2] = elem
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
operator fun ArrayList<String>.get(index1: Int, index2: Int) = this[index1 + index2]
operator fun ArrayList<String>.set(index1: Int, index2: Int, elem: String) {
this[index1 + index2] = elem
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
operator fun HashMap<String, Int?>.set(index: String, elem: Int?) {
this.put(index, elem)
}
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box(): String {
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box(): String {
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box(): String {
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
fun box () : String {
val s = ArrayList<String>()
s.add("foo")
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box() : String {
+1
View File
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
operator fun <K, V> MutableMap<K, V>.set(k : K, v : V) = put(k, v)
fun box() : String {
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
import kotlin.test.*