JVM_IR indy-SAM conversions: tests for function references equality

(SAM conversion using LambdaMetafactory is not used for function refs).

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-27 16:33:16 +03:00
parent f0abd8bc68
commit f34224ecee
6 changed files with 151 additions and 0 deletions
@@ -16133,6 +16133,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("boundFunctionReferenceEquality.kt")
public void testBoundFunctionReferenceEquality() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundFunctionReferenceEquality.kt");
}
@TestMetadata("boundReference.kt")
public void testBoundReference() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt");
@@ -16223,6 +16228,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/invokedynamic/sam/suspendFunInterface.kt");
}
@TestMetadata("unboundFunctionReferenceEquality.kt")
public void testUnboundFunctionReferenceEquality() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/unboundFunctionReferenceEquality.kt");
}
@TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/inline")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)