From 1ff6dc127579f8028f83ec2044ccf2a1d225bedd Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 25 May 2021 20:26:08 +0200 Subject: [PATCH] [kotlin][tests][compiler/testData/debug/stepping] kt-42208 test added. --- compiler/testData/debug/stepping/kt42208b.kt | 25 ++++++++++++ compiler/testData/debug/stepping/kt42208c.kt | 38 +++++++++++++++++++ .../IrSteppingTestGenerated.java | 12 ++++++ .../SteppingTestGenerated.java | 12 ++++++ 4 files changed, 87 insertions(+) create mode 100644 compiler/testData/debug/stepping/kt42208b.kt create mode 100644 compiler/testData/debug/stepping/kt42208c.kt diff --git a/compiler/testData/debug/stepping/kt42208b.kt b/compiler/testData/debug/stepping/kt42208b.kt new file mode 100644 index 00000000000..bfa70bc836c --- /dev/null +++ b/compiler/testData/debug/stepping/kt42208b.kt @@ -0,0 +1,25 @@ +// FILE: test.kt + +fun box() { + val a = foo() + a() +} +// 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 +// test.kt:5 box +// test1.kt:4 invoke +// test.kt:5 box +// LINENUMBERS JVM_IR +// test.kt:6 box +// LINENUMBERS JVM +// test.kt:4 box +// test.kt:5 box +// test.kt:6 box \ No newline at end of file diff --git a/compiler/testData/debug/stepping/kt42208c.kt b/compiler/testData/debug/stepping/kt42208c.kt new file mode 100644 index 00000000000..6f1a140734f --- /dev/null +++ b/compiler/testData/debug/stepping/kt42208c.kt @@ -0,0 +1,38 @@ +// FILE: test.kt + +fun box() { + baz(foo()) + val a = foo() + baz(a) +} +// FILE: test1.kt +// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +inline fun foo() = { +} +//FILE: test3.kt +fun baz(v:(() -> Unit)) { + v() +} +// LINENUMBERS +// test.kt:4 box +// test1.kt:3 box +// test1.kt:4 box +// test.kt:4 box +// test3.kt:3 baz +// LINENUMBERS JVM_IR +// test1.kt:4 invoke +// test3.kt:3 baz +// LINENUMBERS +// test3.kt:4 baz +// test.kt:5 box +// test1.kt:3 box +// test1.kt:4 box +// test.kt:5 box +// test.kt:6 box +// LINENUMBERS JVM_IR +// test3.kt:3 baz +// test1.kt:4 invoke +// LINENUMBERS +// test3.kt:3 baz +// test3.kt:4 baz +// test.kt:7 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 65c004e5b29..a40f880d19b 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/IrSteppingTestGenerated.java @@ -260,6 +260,18 @@ public class IrSteppingTestGenerated extends AbstractIrSteppingTest { runTest("compiler/testData/debug/stepping/kt42208.kt"); } + @Test + @TestMetadata("kt42208b.kt") + public void testKt42208b() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208b.kt"); + } + + @Test + @TestMetadata("kt42208c.kt") + public void testKt42208c() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208c.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 50ca7426b44..c5aaf902d15 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/debugInformation/SteppingTestGenerated.java @@ -260,6 +260,18 @@ public class SteppingTestGenerated extends AbstractSteppingTest { runTest("compiler/testData/debug/stepping/kt42208.kt"); } + @Test + @TestMetadata("kt42208b.kt") + public void testKt42208b() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208b.kt"); + } + + @Test + @TestMetadata("kt42208c.kt") + public void testKt42208c() throws Exception { + runTest("compiler/testData/debug/stepping/kt42208c.kt"); + } + @Test @TestMetadata("lambdaStepInline.kt") public void testLambdaStepInline() throws Exception {