[test] Run irText tests against K1 frontend for JS

This commit is contained in:
Sergej Jaskiewicz
2023-03-14 20:20:53 +01:00
committed by Space Team
parent 502a0b7e10
commit 27ccef868a
135 changed files with 6607 additions and 697 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
sealed class ArrayMap<T : Any> : Iterable<T> {
abstract val size: Int
+2 -2
View File
@@ -1,7 +1,7 @@
// WITH_STDLIB
// FULL_JDK
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
interface IrType
+4 -1
View File
@@ -1,3 +1,6 @@
// IGNORE_BACKEND_K1: JS_IR
// IGNORE_BACKEND_K1: JS_IR_ES6
// MODULE: m1
// FILE: BaseFirBuilder.kt
@@ -12,4 +15,4 @@ abstract class BaseFirBuilder<T> {
open class BaseConverter : BaseFirBuilder<Any>()
class DeclarationsConverter : BaseConverter()
class DeclarationsConverter : BaseConverter()
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM_IR
// SKIP_KLIB_TEST
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// FILE: Collector.java
public class Collector {
@@ -1,8 +1,8 @@
// WITH_STDLIB
// FULL_JDK
// JVM_TARGET: 1.8
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
interface SymbolOwner<E : SymbolOwner<E>>
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
fun foo(s: String?): String {
s?.let { it ->
@@ -1,7 +1,7 @@
// FIR_IDENTICAL
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
interface SimpleTypeMarker
@@ -1,7 +1,7 @@
// WITH_STDLIB
// FULL_JDK
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
class Flaf(val javaName: String) {
+2 -2
View File
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
fun main() {
val (a: Any, _) = 1 to 2
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// KT-50774
class Wrapper(var baseUrl: String)
@@ -10,7 +10,7 @@ class SettingType<out V : Any>(
)
class SettingReference<V : Any, T : SettingType<V>>(
var t : T
var t : T,
var v : V
)
@@ -1,7 +1,7 @@
// WITH_STDLIB
// FULL_JDK
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
interface Something
@@ -1,6 +1,5 @@
// SKIP_KLIB_TEST
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// TARGET_BACKEND: JVM_IR
// WITH_REFLECT
// FULL_JDK
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
enum class EE(val myName: String = this.toString().lowercase()) {
ENTRY;
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JS_IR
// IGNORE_BACKEND_K2: JS_IR_ES6
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
abstract class Visibility(val name: String, val isPublicAPI: Boolean) {
open val internalDisplayName: String