JVM: Update tests

This commit is contained in:
Dmitry Petrov
2020-05-13 17:02:44 +03:00
parent 2f82c5b6af
commit cf70c83ab7
20 changed files with 62 additions and 104 deletions
@@ -24943,16 +24943,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");
@@ -16,7 +16,7 @@ public final class Sealed$Inner {
inner class Sealed$Inner
public synthetic @Ann method <init>(p0: Sealed, p1: int, @Ann p2: int, @Ann p3: java.lang.String, p4: kotlin.jvm.internal.DefaultConstructorMarker): void
private method <init>(p0: Sealed, p1: int, p2: int, p3: java.lang.String): void
public final method getZ2(): int
public final method getZ2-a_XrcN0(): int
}
@kotlin.Metadata
@@ -26,7 +26,7 @@ public abstract class Sealed {
inner class Sealed$Inner
private @Ann method <init>(@Ann p0: int): void
public synthetic method <init>(p0: int, p1: kotlin.jvm.internal.DefaultConstructorMarker): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
}
@kotlin.Metadata
@@ -36,7 +36,7 @@ public final class Test$Inner {
inner class Test$Inner
public synthetic @Ann method <init>(p0: Test, p1: int, @Ann p2: int, @Ann p3: java.lang.String, p4: kotlin.jvm.internal.DefaultConstructorMarker): void
private method <init>(p0: Test, p1: int, p2: int, p3: java.lang.String): void
public final method getZ2(): int
public final method getZ2-a_XrcN0(): int
}
@kotlin.Metadata
@@ -48,7 +48,7 @@ public final class Test {
public synthetic @Ann method <init>(p0: int, @Ann p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void
private @Ann method <init>(p0: int, @Ann p1: java.lang.String): void
private method <init>(p0: int, p1: int): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
}
@kotlin.Metadata
@@ -7,7 +7,7 @@ public final class Foo {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: int, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(p0: int, p1: int): boolean
public final static method getAsThis-impl(p0: int): int
public final static method getAsThis-qUNOhfQ(p0: int): int
public final static method getProp-impl(p0: int): int
public final method getX(): int
public method hashCode(): int
@@ -17,7 +17,7 @@ public class TestBasic {
private method <init>(p0: int, p1: PublicMarker): void
public synthetic method <init>(p0: int, p1: PublicMarker, p2: kotlin.jvm.internal.DefaultConstructorMarker): void
public synthetic method <init>(p0: int, p1: kotlin.jvm.internal.DefaultConstructorMarker): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
}
@kotlin.Metadata
@@ -27,7 +27,7 @@ public final enum class TestEnum {
private final field z: int
static method <clinit>(): void
private method <init>(p0: java.lang.String, p1: int, p2: int): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
public static method valueOf(p0: java.lang.String): TestEnum
public static method values(): TestEnum[]
}
@@ -39,7 +39,7 @@ public final class TestInner$Inner {
inner class TestInner$Inner
private method <init>(p0: TestInner, p1: int): void
public synthetic method <init>(p0: TestInner, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
}
@kotlin.Metadata
@@ -61,7 +61,7 @@ public abstract class TestSealed {
inner class TestSealed$Case
private method <init>(p0: int): void
public synthetic method <init>(p0: int, p1: kotlin.jvm.internal.DefaultConstructorMarker): void
public final method getZ(): int
public final method getZ-a_XrcN0(): int
}
@kotlin.Metadata
@@ -28,10 +28,10 @@ public final class Z2 {
public final static method equals-impl0(p0: int, p1: int): boolean
public final static method foo-E2ud15U(p0: int, p1: int): void
public final static method foo-cYvoCnY(p0: int, p1: int): void
public final method getZ(): int
public final method getZ-dqwzy2Y(): int
public method hashCode(): int
public static method hashCode-impl(p0: int): int
public final static method qux-impl(p0: int): int
public final static method qux-dqwzy2Y(p0: int): int
public method toString(): java.lang.String
public static @org.jetbrains.annotations.NotNull method toString-impl(p0: int): java.lang.String
public synthetic final method unbox-impl(): int
@@ -44,7 +44,7 @@ public final class Q2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: java.lang.Integer, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.NotNull p0: java.lang.Integer, @org.jetbrains.annotations.NotNull p1: java.lang.Integer): boolean
public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.Integer
public final @org.jetbrains.annotations.NotNull method getZ-uJ4aT08(): java.lang.Integer
public method hashCode(): int
public static method hashCode-impl(p0: java.lang.Integer): int
public method toString(): java.lang.String
@@ -61,7 +61,7 @@ public final class QN {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: Q1, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.Nullable p0: Q1, @org.jetbrains.annotations.Nullable p1: Q1): boolean
public final @org.jetbrains.annotations.Nullable method getZ(): Q1
public final @org.jetbrains.annotations.Nullable method getZ-IdL00bE(): Q1
public method hashCode(): int
public static method hashCode-impl(p0: Q1): int
public method toString(): java.lang.String
@@ -95,7 +95,7 @@ public final class S2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): boolean
public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getZ-wzxQ6yE(): java.lang.String
public method hashCode(): int
public static method hashCode-impl(p0: java.lang.String): int
public method toString(): java.lang.String
@@ -112,7 +112,7 @@ public final class SN {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.Nullable p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.String): boolean
public final @org.jetbrains.annotations.Nullable method getZ(): java.lang.String
public final @org.jetbrains.annotations.Nullable method getZ-SV6Y4Kg(): java.lang.String
public method hashCode(): int
public static method hashCode-impl(p0: java.lang.String): int
public method toString(): java.lang.String
@@ -129,7 +129,7 @@ public final class SN2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): boolean
public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getZ-Pxht5ho(): java.lang.String
public method hashCode(): int
public static method hashCode-impl(p0: java.lang.String): int
public method toString(): java.lang.String
@@ -163,7 +163,7 @@ public final class W2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): boolean
public final @org.jetbrains.annotations.NotNull method getZ(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getZ--xsS6hc(): java.lang.String
public method hashCode(): int
public static method hashCode-impl(p0: java.lang.String): int
public method toString(): java.lang.String
@@ -180,7 +180,7 @@ public final class WN {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: W1, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.Nullable p0: W1, @org.jetbrains.annotations.Nullable p1: W1): boolean
public final @org.jetbrains.annotations.Nullable method getZ(): W1
public final @org.jetbrains.annotations.Nullable method getZ-cmZamLk(): W1
public method hashCode(): int
public static method hashCode-impl(p0: W1): int
public method toString(): java.lang.String
@@ -214,7 +214,7 @@ public final class Z2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: int, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(p0: int, p1: int): boolean
public final method getZ(): int
public final method getZ-dqwzy2Y(): int
public method hashCode(): int
public static method hashCode-impl(p0: int): int
public method toString(): java.lang.String
@@ -231,7 +231,7 @@ public final class ZN {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: Z1, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.Nullable p0: Z1, @org.jetbrains.annotations.Nullable p1: Z1): boolean
public final @org.jetbrains.annotations.Nullable method getZ(): Z1
public final @org.jetbrains.annotations.Nullable method getZ-YA4JQTA(): Z1
public method hashCode(): int
public static method hashCode-impl(p0: Z1): int
public method toString(): java.lang.String
@@ -248,7 +248,7 @@ public final class ZN2 {
public method equals(p0: java.lang.Object): boolean
public static method equals-impl(p0: Z1, @org.jetbrains.annotations.Nullable p1: java.lang.Object): boolean
public final static method equals-impl0(@org.jetbrains.annotations.NotNull p0: Z1, @org.jetbrains.annotations.NotNull p1: Z1): boolean
public final @org.jetbrains.annotations.NotNull method getZ(): Z1
public final @org.jetbrains.annotations.NotNull method getZ-2cpqqSA(): Z1
public method hashCode(): int
public static method hashCode-impl(p0: Z1): int
public method toString(): java.lang.String
@@ -1,4 +1,6 @@
// WITH_RUNTIME
// IGNORE_BACKEND: JVM
// ^ TODO support new mangling rules in optimizer
fun testUIntRangeForEach() {
var s = 0
@@ -28,6 +28,6 @@ inline class Delegate(val default: Int) {
// 0 DelegateFactory\.unbox
// 0 Delegate\.box
// 0 Delegate\.unbox
// 1 INVOKESTATIC DelegateFactory\.provideDelegate-impl \(ILjava/lang/Object;Ljava/lang/Object;\)I
// 1 INVOKESTATIC DelegateFactory\.provideDelegate-ARVzKNs \(ILjava/lang/Object;Ljava/lang/Object;\)I
// 1 INVOKESTATIC Delegate\.getValue-impl \(ILjava/lang/Object;Ljava/lang/Object;\)I
// 1 INVOKESTATIC Delegate\.setValue-impl \(ILjava/lang/Object;Ljava/lang/Object;I\)V
@@ -6,5 +6,5 @@ class C {
var s = Str("")
}
// 1 public final getS\(\)Ljava/lang/String;
// 1 public final getS-fpuCDAk\(\)Ljava/lang/String;
// 1 public final setS-pD0jJn0\(Ljava/lang/String;\)V
@@ -2,15 +2,8 @@
// IGNORE_BACKEND: JS_IR, JS, NATIVE
// WITH_REFLECT
// MODULE: main(lib)
// FILE: privateCompanionObjectValInDifferentModule.kt
import lib.*
fun box() = Host.ref.call().s
// MODULE: lib
// FILE: lib.kt
package lib
// FILE: A.kt
package a
import kotlin.reflect.jvm.isAccessible
@@ -21,4 +14,9 @@ class Host {
private val ok = S("OK")
val ref = ::ok.apply { isAccessible = true }
}
}
}
// FILE: B.kt
import a.*
fun box() = Host.ref.call().s
@@ -2,15 +2,8 @@
// IGNORE_BACKEND: JS_IR, JS, NATIVE
// WITH_REFLECT
// MODULE: main(lib)
// FILE: privateTopLevelValInDifferentModule.kt
import lib.*
fun box() = ref.call().s
// MODULE: lib
// FILE: lib.kt
package lib
// FILE: A.kt
package a
import kotlin.reflect.jvm.isAccessible
@@ -19,3 +12,8 @@ inline class S(val s: String)
private val ok = S("OK")
val ref = ::ok.apply { isAccessible = true }
// FILE: B.kt
import a.*
fun box() = ref.call().s
@@ -13,7 +13,7 @@ object Test {
// jvm signature: (I)V
// generic signature: null
// method: Test::asReturn
// method: Test::asReturn-qUNOhfQ
// jvm signature: ()I
// generic signature: null
@@ -14,6 +14,6 @@ object Test {
// jvm signature: (Ljava/lang/Integer;)V
// generic signature: null
// method: Test::asReturn
// method: Test::asReturn-tzJxzxE
// jvm signature: ()LSimpleClass;
// generic signature: null
@@ -26529,16 +26529,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");
@@ -303,6 +303,16 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
@@ -24163,16 +24163,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");
@@ -24943,16 +24943,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");
@@ -298,6 +298,16 @@ public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompile
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
@@ -21194,16 +21194,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");
@@ -21209,16 +21209,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
}
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateCompanionObjectValInDifferentModule.kt");
}
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/privateTopLevelValInDifferentModule.kt");
}
@TestMetadata("properties.kt")
public void testProperties() throws Exception {
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/properties.kt");