JS IR: unmute tests

This commit is contained in:
Anton Bannykh
2018-07-10 17:07:54 +03:00
parent 9e9b27fe79
commit ac1a97ad83
36 changed files with 0 additions and 36 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val a1: Any = 1.toByte().plus(1) val a1: Any = 1.toByte().plus(1)
val a2: Any = 1.toShort().plus(1) val a2: Any = 1.toShort().plus(1)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun <T> id(x: T) = x fun <T> id(x: T) = x
fun box(): String { fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val a1: Any = 1.toByte() + 1 val a1: Any = 1.toByte() + 1
val a2: Any = 1.toShort() + 1 val a2: Any = 1.toShort() + 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val c1: Char = 0.toChar() val c1: Char = 0.toChar()
val c2 = c1 - 1 val c2 = c1 - 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Char) data class A(val a: Char)
fun box() : String { fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class D(private val x: Long, private val y: Char) { data class D(private val x: Long, private val y: Char) {
fun foo() = "${component1()}${component2()}" fun foo() = "${component1()}${component2()}"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1, fun Int.foo(a: Int = 1,
b: Int = 2, b: Int = 2,
c: Int = 3, c: Int = 3,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A { class A {
fun Int.foo(a: Int = 1, fun Int.foo(a: Int = 1,
b: Int = 2, b: Int = 2,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
val <T> T.valProp: T val <T> T.valProp: T
get() = this get() = this
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
var <T> T.varProp: T var <T> T.varProp: T
get() = this get() = this
set(value: T) {} set(value: T) {}
@@ -1,6 +1,5 @@
// !LANGUAGE: +InlineClasses // !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
inline class Foo(val c: Char) { inline class Foo(val c: Char) {
companion object { companion object {
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val d = 42.0 val d = 42.0
val c = 'C' val c = 'C'
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val x: Any = 'A' val x: Any = 'A'
var y = 0 var y = 0
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
val zint : Int? = 1 val zint : Int? = 1
val zlong : Long? = 2 val zlong : Long? = 2
val zbyte : Byte? = 3 val zbyte : Byte? = 3
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Char? = '0' val nx: Char? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Char? = '0' val nx: Char? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Any? = '0' val nx: Any? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val b: Byte = 42 val b: Byte = 42
val c: Char = 'z' val c: Char = 'z'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun byteArg(b: Byte) {} fun byteArg(b: Byte) {}
fun charArg(c: Char) {} fun charArg(c: Char) {}
fun shortArg(s: Short) {} fun shortArg(s: Short) {}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A(var b: Byte) { class A(var b: Byte) {
fun c(d: Short) = (b + d.toByte()).toChar() fun c(d: Short) = (b + d.toByte()).toChar()
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box () : String { fun box () : String {
val b = 4.toByte() val b = 4.toByte()
val s = 5.toShort() val s = 5.toShort()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val a: Char? = 'a' val a: Char? = 'a'
val result = a!! < 'b' val result = a!! < 'b'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val c: Char? = 'a' val c: Char? = 'a'
if (c!! - 'a' != 0) return "Fail c" if (c!! - 'a' != 0) return "Fail c"
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
var a = 'a' var a = 'a'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
package foo package foo
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114 // EXPECTED_REACHABLE_NODES: 1114
package foo package foo
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
package foo package foo
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1094 // EXPECTED_REACHABLE_NODES: 1094
package foo package foo
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114 // EXPECTED_REACHABLE_NODES: 1114
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1116 // EXPECTED_REACHABLE_NODES: 1116
/* /*
* Copy of JVM-backend test * Copy of JVM-backend test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
/* /*
* Copy of JVM-backend test * Copy of JVM-backend test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114 // EXPECTED_REACHABLE_NODES: 1114
package foo package foo
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1108 // EXPECTED_REACHABLE_NODES: 1108
fun box(): String { fun box(): String {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112 // EXPECTED_REACHABLE_NODES: 1112
package foo package foo