Add JVM ABI K1/K2 consistency tests
This commit is contained in:
committed by
Space Team
parent
5a1fb78fcd
commit
34bac48541
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesExtensionIndirect.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
FUNCTION ext(LClassCapturesExtensionIndirect$A;)V
|
||||
Property: class.metadata.function.receiverParameterType
|
||||
K1
|
||||
ClassCapturesExtensionIndirect.A
|
||||
K2
|
||||
A
|
||||
PROPERTY getB()LClassCapturesExtensionIndirect$B;
|
||||
Property: class.metadata.property.returnType
|
||||
K1
|
||||
ClassCapturesExtensionIndirect.B
|
||||
K2
|
||||
B
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
|
||||
|
||||
// expected: rv: kotlin.Unit
|
||||
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesExtensionIndirect2x.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
FUNCTION ext(LClassCapturesExtensionIndirect2x$A;)V
|
||||
Property: class.metadata.function.receiverParameterType
|
||||
K1
|
||||
ClassCapturesExtensionIndirect2x.A
|
||||
K2
|
||||
A
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963, KT-63964
|
||||
|
||||
// expected: rv: kotlin.Unit
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesFunction.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: 42
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesProperty.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: abc
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesPropertyInStringTemplate.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: 42
|
||||
|
||||
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesPropertyIndirect.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: 42
|
||||
|
||||
|
||||
compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.jvm_abi.txt
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS ClassCapturesPropertyIndirect2x.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: 42
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
MODULE main
|
||||
CLASS NestedInnerClassCapturesProperty.class
|
||||
CLASS METADATA
|
||||
K1
|
||||
<init>([Ljava/lang/String;)V
|
||||
K2
|
||||
---
|
||||
Property: class.metadata.superTypes
|
||||
K1
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
K2
|
||||
[]
|
||||
Property: class.metadata.contextReceiverTypes
|
||||
K1
|
||||
[]
|
||||
K2
|
||||
[kotlin/script/templates/standard/ScriptTemplateWithArgs]
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
|
||||
|
||||
// expected: rv: abc!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user