Skip to content

Commit 2fe1170

Browse files
ret has been optimized away in debuginfo test
1 parent 8c71011 commit 2fe1170

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

src/test/debuginfo/generic-function.rs

+9-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore-tidy-linelength
2-
31
// min-lldb-version: 310
42

53
// compile-flags:-g
@@ -12,31 +10,21 @@
1210
// gdb-check:$1 = 1
1311
// gdb-command:print *t1
1412
// gdb-check:$2 = 2.5
15-
// gdb-command:print ret
16-
// gdbg-check:$3 = {__0 = {__0 = 1, __1 = 2.5}, __1 = {__0 = 2.5, __1 = 1}}
17-
// gdbr-check:$3 = ((1, 2.5), (2.5, 1))
1813
// gdb-command:continue
1914

2015
// gdb-command:print *t0
21-
// gdb-check:$4 = 3.5
16+
// gdb-check:$3 = 3.5
2217
// gdb-command:print *t1
23-
// gdb-check:$5 = 4
24-
// gdb-command:print ret
25-
// gdbg-check:$6 = {__0 = {__0 = 3.5, __1 = 4}, __1 = {__0 = 4, __1 = 3.5}}
26-
// gdbr-check:$6 = ((3.5, 4), (4, 3.5))
18+
// gdb-check:$4 = 4
2719
// gdb-command:continue
2820

2921
// gdb-command:print *t0
30-
// gdb-check:$7 = 5
22+
// gdb-check:$5 = 5
3123
// gdb-command:print *t1
32-
// gdbg-check:$8 = {a = 6, b = 7.5}
33-
// gdbr-check:$8 = generic_function::Struct {a: 6, b: 7.5}
34-
// gdb-command:print ret
35-
// gdbg-check:$9 = {__0 = {__0 = 5, __1 = {a = 6, b = 7.5}}, __1 = {__0 = {a = 6, b = 7.5}, __1 = 5}}
36-
// gdbr-check:$9 = ((5, generic_function::Struct {a: 6, b: 7.5}), (generic_function::Struct {a: 6, b: 7.5}, 5))
24+
// gdbg-check:$6 = {a = 6, b = 7.5}
25+
// gdbr-check:$6 = generic_function::Struct {a: 6, b: 7.5}
3726
// gdb-command:continue
3827

39-
4028
// === LLDB TESTS ==================================================================================
4129

4230
// lldb-command:run
@@ -47,31 +35,22 @@
4735
// lldb-command:print *t1
4836
// lldbg-check:[...]$1 = 2.5
4937
// lldbr-check:(f64) *t1 = 2.5
50-
// lldb-command:print ret
51-
// lldbg-check:[...]$2 = ((1, 2.5), (2.5, 1))
52-
// lldbr-check:(((i32, f64), (f64, i32))) ret = { = { = 1 = 2.5 } = { = 2.5 = 1 } }
5338
// lldb-command:continue
5439

5540
// lldb-command:print *t0
56-
// lldbg-check:[...]$3 = 3.5
41+
// lldbg-check:[...]$2 = 3.5
5742
// lldbr-check:(f64) *t0 = 3.5
5843
// lldb-command:print *t1
59-
// lldbg-check:[...]$4 = 4
44+
// lldbg-check:[...]$3 = 4
6045
// lldbr-check:(u16) *t1 = 4
61-
// lldb-command:print ret
62-
// lldbg-check:[...]$5 = ((3.5, 4), (4, 3.5))
63-
// lldbr-check:(((f64, u16), (u16, f64))) ret = { = { = 3.5 = 4 } = { = 4 = 3.5 } }
6446
// lldb-command:continue
6547

6648
// lldb-command:print *t0
67-
// lldbg-check:[...]$6 = 5
49+
// lldbg-check:[...]$4 = 5
6850
// lldbr-check:(i32) *t0 = 5
6951
// lldb-command:print *t1
70-
// lldbg-check:[...]$7 = Struct { a: 6, b: 7.5 }
52+
// lldbg-check:[...]$5 = Struct { a: 6, b: 7.5 }
7153
// lldbr-check:(generic_function::Struct) *t1 = Struct { a: 6, b: 7.5 }
72-
// lldb-command:print ret
73-
// lldbg-check:[...]$8 = ((5, Struct { a: 6, b: 7.5 }), (Struct { a: 6, b: 7.5 }, 5))
74-
// lldbr-check:(((i32, generic_function::Struct), (generic_function::Struct, i32))) ret = { = { = 5 = Struct { a: 6, b: 7.5 } } = { = Struct { a: 6, b: 7.5 } = 5 } }
7554
// lldb-command:continue
7655

7756
#![feature(omit_gdb_pretty_printer_section)]

0 commit comments

Comments
 (0)