From 8efb955ab515fcd91a92132e01ca709673108145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Sch=C3=A4fer?= Date: Wed, 6 Jan 2021 17:19:04 +0100 Subject: [PATCH] JVM: Add more tests to jvm-abi-gen --- .../jvm/abi/CompareJvmAbiTestGenerated.java | 40 +++++++++++++++++++ .../jvm/abi/IrCompareJvmAbiTestGenerated.java | 40 +++++++++++++++++++ .../abi/LegacyCompareJvmAbiTestGenerated.java | 40 +++++++++++++++++++ .../compare/anonymousObjects/base/test.kt | 5 +++ .../compare/anonymousObjects/directives.txt | 1 + .../compare/anonymousObjects/sameAbi/test.kt | 3 ++ .../compare/declarationOrder/base/test.kt | 9 +++++ .../compare/declarationOrder/directives.txt | 1 + .../compare/declarationOrder/sameAbi/test.kt | 9 +++++ .../declarationOrderInline/base/test.kt | 4 ++ .../differentAbi/test.kt | 7 ++++ .../declarationOrderInlineCall/base/test.kt | 7 ++++ .../declarationOrderInlineCall/directives.txt | 2 + .../sameAbi/test.kt | 8 ++++ .../base/test.kt | 6 +++ .../directives.txt | 1 + .../sameAbi/test.kt | 6 +++ .../base/test.kt | 9 +++++ .../directives.txt | 1 + .../sameAbi/test.kt | 10 +++++ .../testData/compare/lambdas/base/test.kt | 4 ++ .../testData/compare/lambdas/directives.txt | 1 + .../testData/compare/lambdas/sameAbi/test.kt | 3 ++ .../compare/syntheticAccessors/base/test.kt | 8 ++++ .../syntheticAccessors/sameAbi/test.kt | 5 +++ 25 files changed, 230 insertions(+) create mode 100644 plugins/jvm-abi-gen/testData/compare/anonymousObjects/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/anonymousObjects/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/anonymousObjects/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrder/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrder/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrder/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInline/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInline/differentAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/lambdas/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/lambdas/directives.txt create mode 100644 plugins/jvm-abi-gen/testData/compare/lambdas/sameAbi/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/syntheticAccessors/base/test.kt create mode 100644 plugins/jvm-abi-gen/testData/compare/syntheticAccessors/sameAbi/test.kt diff --git a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/CompareJvmAbiTestGenerated.java b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/CompareJvmAbiTestGenerated.java index dd7d35d65f3..de4cb9e4cb8 100644 --- a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/CompareJvmAbiTestGenerated.java +++ b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/CompareJvmAbiTestGenerated.java @@ -30,6 +30,11 @@ public class CompareJvmAbiTestGenerated extends AbstractCompareJvmAbiTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/jvm-abi-gen/testData/compare"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM, false); } + @TestMetadata("anonymousObjects") + public void testAnonymousObjects() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/anonymousObjects/"); + } + @TestMetadata("classFlags") public void testClassFlags() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/classFlags/"); @@ -50,6 +55,31 @@ public class CompareJvmAbiTestGenerated extends AbstractCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/constant/"); } + @TestMetadata("declarationOrder") + public void testDeclarationOrder() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrder/"); + } + + @TestMetadata("declarationOrderInline") + public void testDeclarationOrderInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInline/"); + } + + @TestMetadata("declarationOrderInlineCall") + public void testDeclarationOrderInlineCall() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/"); + } + + @TestMetadata("declarationOrderInlineNonInline") + public void testDeclarationOrderInlineNonInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/"); + } + + @TestMetadata("declarationOrderPrivateInline") + public void testDeclarationOrderPrivateInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/"); + } + @TestMetadata("functionBody") public void testFunctionBody() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/functionBody/"); @@ -60,6 +90,11 @@ public class CompareJvmAbiTestGenerated extends AbstractCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/inlineFunctionBody/"); } + @TestMetadata("lambdas") + public void testLambdas() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/lambdas/"); + } + @TestMetadata("parameterName") public void testParameterName() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/parameterName/"); @@ -80,6 +115,11 @@ public class CompareJvmAbiTestGenerated extends AbstractCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/superClass/"); } + @TestMetadata("syntheticAccessors") + public void testSyntheticAccessors() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/syntheticAccessors/"); + } + @TestMetadata("topLevelPrivateMembers") public void testTopLevelPrivateMembers() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/topLevelPrivateMembers/"); diff --git a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/IrCompareJvmAbiTestGenerated.java b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/IrCompareJvmAbiTestGenerated.java index 0c33c6dee65..be790591934 100644 --- a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/IrCompareJvmAbiTestGenerated.java +++ b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/IrCompareJvmAbiTestGenerated.java @@ -30,6 +30,11 @@ public class IrCompareJvmAbiTestGenerated extends AbstractIrCompareJvmAbiTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/jvm-abi-gen/testData/compare"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, false); } + @TestMetadata("anonymousObjects") + public void testAnonymousObjects() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/anonymousObjects/"); + } + @TestMetadata("classFlags") public void testClassFlags() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/classFlags/"); @@ -50,6 +55,31 @@ public class IrCompareJvmAbiTestGenerated extends AbstractIrCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/constant/"); } + @TestMetadata("declarationOrder") + public void testDeclarationOrder() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrder/"); + } + + @TestMetadata("declarationOrderInline") + public void testDeclarationOrderInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInline/"); + } + + @TestMetadata("declarationOrderInlineCall") + public void testDeclarationOrderInlineCall() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/"); + } + + @TestMetadata("declarationOrderInlineNonInline") + public void testDeclarationOrderInlineNonInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/"); + } + + @TestMetadata("declarationOrderPrivateInline") + public void testDeclarationOrderPrivateInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/"); + } + @TestMetadata("functionBody") public void testFunctionBody() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/functionBody/"); @@ -60,6 +90,11 @@ public class IrCompareJvmAbiTestGenerated extends AbstractIrCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/inlineFunctionBody/"); } + @TestMetadata("lambdas") + public void testLambdas() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/lambdas/"); + } + @TestMetadata("parameterName") public void testParameterName() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/parameterName/"); @@ -80,6 +115,11 @@ public class IrCompareJvmAbiTestGenerated extends AbstractIrCompareJvmAbiTest { runTest("plugins/jvm-abi-gen/testData/compare/superClass/"); } + @TestMetadata("syntheticAccessors") + public void testSyntheticAccessors() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/syntheticAccessors/"); + } + @TestMetadata("topLevelPrivateMembers") public void testTopLevelPrivateMembers() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/topLevelPrivateMembers/"); diff --git a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/LegacyCompareJvmAbiTestGenerated.java b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/LegacyCompareJvmAbiTestGenerated.java index 029b53a8bc7..305216a0c75 100644 --- a/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/LegacyCompareJvmAbiTestGenerated.java +++ b/plugins/jvm-abi-gen/test/org/jetbrains/kotlin/jvm/abi/LegacyCompareJvmAbiTestGenerated.java @@ -30,6 +30,11 @@ public class LegacyCompareJvmAbiTestGenerated extends AbstractLegacyCompareJvmAb KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/jvm-abi-gen/testData/compare"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM, false); } + @TestMetadata("anonymousObjects") + public void testAnonymousObjects() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/anonymousObjects/"); + } + @TestMetadata("classFlags") public void testClassFlags() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/classFlags/"); @@ -50,6 +55,31 @@ public class LegacyCompareJvmAbiTestGenerated extends AbstractLegacyCompareJvmAb runTest("plugins/jvm-abi-gen/testData/compare/constant/"); } + @TestMetadata("declarationOrder") + public void testDeclarationOrder() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrder/"); + } + + @TestMetadata("declarationOrderInline") + public void testDeclarationOrderInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInline/"); + } + + @TestMetadata("declarationOrderInlineCall") + public void testDeclarationOrderInlineCall() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/"); + } + + @TestMetadata("declarationOrderInlineNonInline") + public void testDeclarationOrderInlineNonInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/"); + } + + @TestMetadata("declarationOrderPrivateInline") + public void testDeclarationOrderPrivateInline() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/"); + } + @TestMetadata("functionBody") public void testFunctionBody() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/functionBody/"); @@ -60,6 +90,11 @@ public class LegacyCompareJvmAbiTestGenerated extends AbstractLegacyCompareJvmAb runTest("plugins/jvm-abi-gen/testData/compare/inlineFunctionBody/"); } + @TestMetadata("lambdas") + public void testLambdas() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/lambdas/"); + } + @TestMetadata("parameterName") public void testParameterName() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/parameterName/"); @@ -80,6 +115,11 @@ public class LegacyCompareJvmAbiTestGenerated extends AbstractLegacyCompareJvmAb runTest("plugins/jvm-abi-gen/testData/compare/superClass/"); } + @TestMetadata("syntheticAccessors") + public void testSyntheticAccessors() throws Exception { + runTest("plugins/jvm-abi-gen/testData/compare/syntheticAccessors/"); + } + @TestMetadata("topLevelPrivateMembers") public void testTopLevelPrivateMembers() throws Exception { runTest("plugins/jvm-abi-gen/testData/compare/topLevelPrivateMembers/"); diff --git a/plugins/jvm-abi-gen/testData/compare/anonymousObjects/base/test.kt b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/base/test.kt new file mode 100644 index 00000000000..9daa823c922 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/base/test.kt @@ -0,0 +1,5 @@ +package test + +private val x = object { fun f() = 1 } + +fun g() = x.f() + object { fun f() = 0 }.f() diff --git a/plugins/jvm-abi-gen/testData/compare/anonymousObjects/directives.txt b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/directives.txt new file mode 100644 index 00000000000..3f7eb8b3500 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/directives.txt @@ -0,0 +1 @@ +// IGNORE_BACKEND_LEGACY: JVM \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/anonymousObjects/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/sameAbi/test.kt new file mode 100644 index 00000000000..043f6716eeb --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/anonymousObjects/sameAbi/test.kt @@ -0,0 +1,3 @@ +package test + +fun g() = 1 \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrder/base/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrder/base/test.kt new file mode 100644 index 00000000000..65c5834e6d9 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrder/base/test.kt @@ -0,0 +1,9 @@ +package test + +class A { + fun f() = 1 + val x = 2 +} + +val y = 3 +fun g() = 4 \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrder/directives.txt b/plugins/jvm-abi-gen/testData/compare/declarationOrder/directives.txt new file mode 100644 index 00000000000..3f7eb8b3500 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrder/directives.txt @@ -0,0 +1 @@ +// IGNORE_BACKEND_LEGACY: JVM \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrder/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrder/sameAbi/test.kt new file mode 100644 index 00000000000..7bf7429c9bc --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrder/sameAbi/test.kt @@ -0,0 +1,9 @@ +package test + +fun g() = 4 +val y = 3 + +class A { + val x = 2 + fun f() = 1 +} diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/base/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/base/test.kt new file mode 100644 index 00000000000..e166d32abd1 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/base/test.kt @@ -0,0 +1,4 @@ +package test + +inline fun f() = 1 +inline fun g() = 2 diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/differentAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/differentAbi/test.kt new file mode 100644 index 00000000000..a333a462fbe --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInline/differentAbi/test.kt @@ -0,0 +1,7 @@ +package test + +inline fun g() = 2 + +inline fun f() = 1 + +// This changes the line numbers in f, g diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/base/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/base/test.kt new file mode 100644 index 00000000000..8e86509c58c --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/base/test.kt @@ -0,0 +1,7 @@ +package test + + + +inline fun f() = 1 + +fun g() = f() \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/directives.txt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/directives.txt new file mode 100644 index 00000000000..ea0fd1d7526 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/directives.txt @@ -0,0 +1,2 @@ +// IGNORE_BACKEND_LEGACY: JVM +// IGNORE_BACKEND: JVM, JVM_IR \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/sameAbi/test.kt new file mode 100644 index 00000000000..39ae6b43a76 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineCall/sameAbi/test.kt @@ -0,0 +1,8 @@ +package test + +fun g() = f() + +inline fun f() = 1 + +// This does not change the line numbers in f, but does change the line +// numbers in the SourceDebug extension section which has to be rewritten. \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/base/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/base/test.kt new file mode 100644 index 00000000000..4f563379187 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/base/test.kt @@ -0,0 +1,6 @@ +package test + +inline fun f() = 1 + +fun g() = 2 +fun h() = 3 diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/directives.txt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/directives.txt new file mode 100644 index 00000000000..3f7eb8b3500 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/directives.txt @@ -0,0 +1 @@ +// IGNORE_BACKEND_LEGACY: JVM \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/sameAbi/test.kt new file mode 100644 index 00000000000..ba3025ffcac --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderInlineNonInline/sameAbi/test.kt @@ -0,0 +1,6 @@ +package test + +inline fun f() = 1 + +fun h() = 3 +fun g() = 2 diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/base/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/base/test.kt new file mode 100644 index 00000000000..6021782a5af --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/base/test.kt @@ -0,0 +1,9 @@ +package test + +private inline fun f(): Int { + return g() +} + +private inline fun g() = 1 + +fun h() = f() diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/directives.txt b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/directives.txt new file mode 100644 index 00000000000..3f7eb8b3500 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/directives.txt @@ -0,0 +1 @@ +// IGNORE_BACKEND_LEGACY: JVM \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/sameAbi/test.kt new file mode 100644 index 00000000000..0546874db6c --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/declarationOrderPrivateInline/sameAbi/test.kt @@ -0,0 +1,10 @@ +package test + + +fun h() = f() + +private inline fun g() = 1 + +private inline fun f(): Int { + return g() +} diff --git a/plugins/jvm-abi-gen/testData/compare/lambdas/base/test.kt b/plugins/jvm-abi-gen/testData/compare/lambdas/base/test.kt new file mode 100644 index 00000000000..b83f5854458 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/lambdas/base/test.kt @@ -0,0 +1,4 @@ +package test + +private inline fun f() = { 1 }() +fun g() = f() diff --git a/plugins/jvm-abi-gen/testData/compare/lambdas/directives.txt b/plugins/jvm-abi-gen/testData/compare/lambdas/directives.txt new file mode 100644 index 00000000000..3f7eb8b3500 --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/lambdas/directives.txt @@ -0,0 +1 @@ +// IGNORE_BACKEND_LEGACY: JVM \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/lambdas/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/lambdas/sameAbi/test.kt new file mode 100644 index 00000000000..043f6716eeb --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/lambdas/sameAbi/test.kt @@ -0,0 +1,3 @@ +package test + +fun g() = 1 \ No newline at end of file diff --git a/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/base/test.kt b/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/base/test.kt new file mode 100644 index 00000000000..faf9e63664c --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/base/test.kt @@ -0,0 +1,8 @@ +package test + +private val x = 1 + +// We don't yet strip out empty top-level classes from the kotlin_module files! +val y = 2 + +object A { fun f() = x } diff --git a/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/sameAbi/test.kt b/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/sameAbi/test.kt new file mode 100644 index 00000000000..f7917a1690c --- /dev/null +++ b/plugins/jvm-abi-gen/testData/compare/syntheticAccessors/sameAbi/test.kt @@ -0,0 +1,5 @@ +package test + +object A { fun f() = 1 } + +val y = 2