Skip to content

Commit b7675ae

Browse files
ddolovovSpace Team
authored andcommitted
[Test] Add an LLDB stepping test for KT-82065
^KT-82065
1 parent 74269bf commit b7675ae

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// ISSUE: KT-82065
2+
// KIND: STANDALONE_LLDB
3+
// FREE_COMPILER_ARGS: -Xklib-ir-inliner=full
4+
5+
// FILE: lib.kt
6+
inline fun foo(a: Int = 1) = a + 1
7+
inline fun bar(b: Int, c: Int = 2) = b + c
8+
9+
// FILE: main.kt
10+
fun main() {
11+
foo()
12+
foo(5)
13+
bar(10)
14+
bar(10, 20)
15+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
> b main.kt:11
2+
> r
3+
[..] stop reason = breakpoint 1.1
4+
[..] at main.kt:11:5
5+
6+
> s
7+
[..] stop reason = step in
8+
[..] at lib.kt:6:25 [inlined]
9+
10+
> s
11+
[..] stop reason = step in
12+
[..] at main.kt:12:9
13+
14+
> s
15+
[..] stop reason = step in
16+
[..] at lib.kt:6:30 [inlined]
17+
18+
> s
19+
[..] stop reason = step in
20+
[..] at main.kt:13:9
21+
22+
> s
23+
[..] stop reason = step in
24+
[..] at lib.kt:7:33 [inlined]
25+
26+
> s
27+
[..] stop reason = step in
28+
[..] at main.kt:14:9
29+
30+
> s
31+
[..] stop reason = step in
32+
[..] at lib.kt:7:38 [inlined]

native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirLldbTestGenerated.java

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)