JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
OUTER@while (true) {
var x = ""
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun test(str: String): String {
var s = ""
for (i in 1..3) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var s = "OK"
for (i in 1..3) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun returnNullable(): String? = null
inline fun Array<String>.matchAll(fn: (String) -> Unit) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(x: Long, y: Int, z: Double, s: String) {}
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var x = "OK"
while (true) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var r = ""
for (i in 1..1) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
while (true) {
try {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun concatNonNulls(strings: List<String?>): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun for_int_range(): Int {
var c = 0
for (i in 1..10) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun foo(): List<String>? = listOf("abcde")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun for_int_range(): Int {
var c = 0
loop@ for (i in 1..10) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var x = 0
do x++ while (x < 5)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
do while (false);
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var index = 0
interface IterableIterator : Iterator<Int> {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
while (false);
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
import kotlin.test.assertEquals
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var result = "Fail"
fun foo() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val alist = arrayListOf(1, 2, 3) // : j.u.ArrayList<k.Int>
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val alist = arrayListOf(1 to 2, 2 to 3, 3 to 4)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
var xs = intArrayOf(1, 2, 3)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// LANGUAGE_VERSION: 1.2
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// LANGUAGE_VERSION: 1.3
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Del<T>(var x: T) {
operator fun getValue(thisRef: Any?, kProp: Any) = x
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var xs: IntArray = intArrayOf(1, 2, 3)
get() = field
set(ys) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box() : String {
val a = arrayOfNulls<Int>(5)
var i = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box() : String {
val b : Array<Int?> = arrayOfNulls<Int> (5)
var i = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box() : String {
val a = IntArray (5)
var i = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// See https://youtrack.jetbrains.com/issue/KT-22424
// IGNORE_BACKEND: JS
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = byteArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = byteArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = intArrayOf()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = intArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = intArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = arrayOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = shortArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val arr = shortArrayOf(10, 20, 30, 40)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val cs: CharSequence = "abcd"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = "abcd"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = "abcd"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = "abcd"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf<Any>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
// FULL_JDK
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf<Any>().asSequence()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d").asSequence()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d").asSequence()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d").asSequence()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS, NATIVE
// FULL_JDK
// WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val xs = listOf("a", "b", "c", "d").asSequence()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun f(x: Any?): Any? {
if (x is Array<*>) {
for (i in x) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class It {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class It {
operator fun next() = 5
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Foo {
var rnd = 10
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
try {
} catch (e: Exception) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun nyCompiler() {
try {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var s = ""
try {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val x = 2
return when(x) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(x: Any?, y: Any?) = 0L
inline fun test(value: Any?): Long {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(args: Array<String>) {
try {
} finally {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
1 in 1.rangeTo(10)
1..10
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
9 in 0..9
val intRange = 0..9
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo(): Int {
try {
} finally {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class MyRange1() : ClosedRange<Int> {
override val start: Int
get() = 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun testIf() {
val condition = true
val result = if (condition) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun check1() {
val result = if (true) {
if (true) 1 else 2
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun printlnMock(a: Any) {}
public fun testCoalesce() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo() {
var x = 0
do {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
class A() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A() {
fun action() = "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
package demo2
fun print(o : Any?) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
package demo2
fun print(o : Any?) {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun foo() : Int =
try {
2
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun test() = 239
fun box() = if(test() in 239..240) "OK" else "fail"

Some files were not shown because too many files have changed in this diff Show More