[K/N] Run irText tests for K1/Native
^KT-58240
This commit is contained in:
committed by
Space Team
parent
40c9f831e2
commit
3aa6c9e74d
+3
@@ -1,6 +1,9 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
annotation class TestAnn(val x: String)
|
||||
|
||||
@TestAnn("class")
|
||||
|
||||
+3
@@ -4,6 +4,9 @@
|
||||
// SKIP_SIGNATURE_DUMP
|
||||
// ^ Difference in annotations generated by K1 and K2
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
annotation class TestAnn(val x: String)
|
||||
|
||||
enum class TestEnum {
|
||||
|
||||
+3
@@ -1,6 +1,9 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
enum class En { A, B, C, D }
|
||||
|
||||
annotation class TestAnn(val x: En)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-61141: kotlin.collections.HashMap instead of java.util.HashMap
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
class C {
|
||||
val test1 = 0
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// KT-61141: K1/Native does not support context receivers
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
fun withContext(f: context(String) () -> String) = f("OK")
|
||||
|
||||
|
||||
+3
@@ -1,6 +1,9 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// KT-61141: kotlin.Comparator instead of java.util.Comparator
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
data class Pair<A, B>(val first: A, val second: B)
|
||||
|
||||
context(Comparator<T>)
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// KT-61141: K1/Native does not support context receivers
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
class Param
|
||||
class O {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// KT-61141: K1/Native does not support context receivers
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
class Param
|
||||
class C {
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// KT-61141: K1/Native does not support context receivers
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
class C {
|
||||
val result = "OK"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-61141: kotlin.collections.HashMap instead of java.util.HashMap
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
val test1 by lazy { 42 }
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// KT-61141: throws kotlin.RuntimeException instead of java.lang.RuntimeException
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class MySerializable(val c: kotlin.reflect.KClass<*>)
|
||||
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// KT-61141: `println (message: kotlin.Any?)` instead of `println (message: kotlin.Int)`
|
||||
// KT-61141: `kotlin.collections.HashMap` instead of `java.util.HashMap`
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
fun test1() {
|
||||
val x by lazy { 42 }
|
||||
println(x)
|
||||
|
||||
+3
@@ -2,6 +2,9 @@
|
||||
// IGNORE_BACKEND_K1: JVM_IR, JS_IR
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
// KT-61141: NO_ACTUAL_FOR_EXPECT: Expected class 'C' has no actual declaration in module <common> for Native (21,14) in /common.kt
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
|
||||
|
||||
+3
@@ -3,6 +3,9 @@
|
||||
// SKIP_KLIB_TEST
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
// KT-61141: NO_ACTUAL_FOR_EXPECT: Expected class 'C1' has no actual declaration in module <common> for Native (9,19) in /common.kt
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
// IGNORE_BACKEND_K1: JS_IR
|
||||
// IGNORE_BACKEND_K1: JS_IR_ES6
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
expect enum class MyEnum {
|
||||
FOO,
|
||||
BAR
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-61141: kotlin.collections.HashMap instead of java.util.HashMap
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
val test1 = 0
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
// LANGUAGE: -ProhibitIllegalValueParameterUsageInDefaultArguments
|
||||
// IGNORE_BACKEND_K1: JS_IR
|
||||
// IGNORE_BACKEND_K1: JS_IR_ES6
|
||||
// KT-61141: catches kotlin.Exception instead of java.lang.Exception
|
||||
// IGNORE_BACKEND_K1: NATIVE
|
||||
|
||||
fun f(
|
||||
f1: () -> String = { f2() },
|
||||
|
||||
Reference in New Issue
Block a user