[JS IR BE] Add missing KJS_WITH_FULL_RUNTIME to some tests

+ ranges test generator
This commit is contained in:
Svyatoslav Kuzmich
2019-01-25 20:27:59 +03:00
parent ac7517dd76
commit 75328f26ea
14 changed files with 17 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
fun box() : String {
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class A() {
infix fun <T> ArrayList<T>.add3(el: T) = add(el)
@@ -1,6 +1,7 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_REFLECT
// KJS_WITH_FULL_RUNTIME
import kotlin.reflect.*
@@ -1,6 +1,7 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JS_IR, JVM_IR
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class C<T>(val x: T, vararg ys: UInt) {
val y0 = ys[0]
@@ -1,5 +1,6 @@
// !LANGUAGE: +InlineClasses
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JVM_IR, JS_IR
import kotlin.test.*
@@ -1,5 +1,5 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
import kotlin.test.*
fun box(): String {
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
var order = StringBuilder()
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// IGNORE_BACKEND: JVM_IR
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// IGNORE_BACKEND: JVM_IR
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// IGNORE_BACKEND: JVM_IR
@@ -1,3 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// IGNORE_BACKEND: JVM_IR
@@ -1,4 +1,5 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JS_IR, JVM_IR
@file:Suppress("SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED")
@@ -1,5 +1,6 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JS_IR
fun uint(vararg us: UInt): UIntArray = us
@@ -143,6 +143,8 @@ public class GenerateRangesCodegenTestData {
throw new AssertionError(e);
}
out.println("// KJS_WITH_FULL_RUNTIME");
// Ranges are not supported in JVM_IR yet
if (!WHITELISTED_FOR_JVM_IR_BACKEND.contains(file.getName())) {
writeIgnoreBackendDirective(out, "JVM_IR");