From ef2c2c2c9e0c362572320735ff201f4e28a16132 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Wed, 28 Apr 2021 17:37:59 +0200 Subject: [PATCH] [kotlin][tests][compiler/testData/debug/stepping] kt-42208 test added. --- compiler/testData/debug/stepping/kt42208.kt | 19 +++++++++++++++++++ .../IrSteppingTestGenerated.java | 6 ++++++ .../SteppingTestGenerated.java | 6 ++++++ 3 files changed, 31 insertions(+) create mode 100644 compiler/testData/debug/stepping/kt42208.kt diff --git a/compiler/testData/debug/stepping/kt42208.kt b/compiler/testData/debug/stepping/kt42208.kt new file mode 100644 index 00000000000..c24d7d0a840 --- /dev/null +++ b/compiler/testData/debug/stepping/kt42208.kt @@ -0,0 +1,19 @@ +// FILE: test.kt + +fun box() { + foo()() +} +// FILE: test1.kt +// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +inline fun foo() = { +} +// LINENUMBERS +// test.kt:4 box +// test1.kt:3 box +// test1.kt:4 box +// LINENUMBERS JVM_IR +// test.kt:4 box +// test1.kt:4 invoke +// test.kt:4 box +// LINENUMBERS +// test.kt:5 box \ No newline at end of file diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java index 653fd46620b..67733e9ebee 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java @@ -248,6 +248,12 @@ public class IrSteppingTestGenerated extends AbstractIrSteppingTest { runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt"); } + @Test + @TestMetadata("kt42208.kt") + public void testKt42208() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208.kt"); + } + @Test @TestMetadata("lambdaStepInline.kt") public void testLambdaStepInline() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java index b2ccbb9fb7e..a720f285ea7 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java @@ -248,6 +248,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest { runTest("compiler/testData/debug/stepping/inlineSimpleCall.kt"); } + @Test + @TestMetadata("kt42208.kt") + public void testKt42208() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208.kt"); + } + @Test @TestMetadata("lambdaStepInline.kt") public void testLambdaStepInline() throws Exception {