[JS IR BE] Add missing KJS_WITH_FULL_RUNTIME to some tests
+ ranges test generator
This commit is contained in:
+2
-1
@@ -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)
|
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
|
||||||
|
|
||||||
fun box() : String {
|
fun box() : String {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
infix fun <T> ArrayList<T>.add3(el: T) = add(el)
|
infix fun <T> ArrayList<T>.add3(el: T) = add(el)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
|
|
||||||
import kotlin.reflect.*
|
import kotlin.reflect.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
// IGNORE_BACKEND: JS_IR, JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
|
|
||||||
class C<T>(val x: T, vararg ys: UInt) {
|
class C<T>(val x: T, vararg ys: UInt) {
|
||||||
val y0 = ys[0]
|
val y0 = ys[0]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// IGNORE_BACKEND: JVM_IR, JS_IR
|
// IGNORE_BACKEND: JVM_IR, JS_IR
|
||||||
|
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
|
|
||||||
var order = StringBuilder()
|
var order = StringBuilder()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// 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
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// 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
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// 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
|
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// IGNORE_BACKEND: JS_IR, JVM_IR
|
// IGNORE_BACKEND: JS_IR, JVM_IR
|
||||||
|
|
||||||
@file:Suppress("SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED")
|
@file:Suppress("SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED")
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
|
|
||||||
fun uint(vararg us: UInt): UIntArray = us
|
fun uint(vararg us: UInt): UIntArray = us
|
||||||
|
|||||||
+2
@@ -143,6 +143,8 @@ public class GenerateRangesCodegenTestData {
|
|||||||
throw new AssertionError(e);
|
throw new AssertionError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.println("// KJS_WITH_FULL_RUNTIME");
|
||||||
|
|
||||||
// Ranges are not supported in JVM_IR yet
|
// Ranges are not supported in JVM_IR yet
|
||||||
if (!WHITELISTED_FOR_JVM_IR_BACKEND.contains(file.getName())) {
|
if (!WHITELISTED_FOR_JVM_IR_BACKEND.contains(file.getName())) {
|
||||||
writeIgnoreBackendDirective(out, "JVM_IR");
|
writeIgnoreBackendDirective(out, "JVM_IR");
|
||||||
|
|||||||
Reference in New Issue
Block a user