|
1 | | -// ignore-tidy-linelength |
2 | | - |
3 | 1 | // min-lldb-version: 310 |
4 | 2 |
|
5 | 3 | // compile-flags:-g |
|
12 | 10 | // gdb-check:$1 = 1 |
13 | 11 | // gdb-command:print *t1 |
14 | 12 | // 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)) |
18 | 13 | // gdb-command:continue |
19 | 14 |
|
20 | 15 | // gdb-command:print *t0 |
21 | | -// gdb-check:$4 = 3.5 |
| 16 | +// gdb-check:$3 = 3.5 |
22 | 17 | // 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 |
27 | 19 | // gdb-command:continue |
28 | 20 |
|
29 | 21 | // gdb-command:print *t0 |
30 | | -// gdb-check:$7 = 5 |
| 22 | +// gdb-check:$5 = 5 |
31 | 23 | // 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} |
37 | 26 | // gdb-command:continue |
38 | 27 |
|
39 | | - |
40 | 28 | // === LLDB TESTS ================================================================================== |
41 | 29 |
|
42 | 30 | // lldb-command:run |
|
47 | 35 | // lldb-command:print *t1 |
48 | 36 | // lldbg-check:[...]$1 = 2.5 |
49 | 37 | // 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 } } |
53 | 38 | // lldb-command:continue |
54 | 39 |
|
55 | 40 | // lldb-command:print *t0 |
56 | | -// lldbg-check:[...]$3 = 3.5 |
| 41 | +// lldbg-check:[...]$2 = 3.5 |
57 | 42 | // lldbr-check:(f64) *t0 = 3.5 |
58 | 43 | // lldb-command:print *t1 |
59 | | -// lldbg-check:[...]$4 = 4 |
| 44 | +// lldbg-check:[...]$3 = 4 |
60 | 45 | // 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 } } |
64 | 46 | // lldb-command:continue |
65 | 47 |
|
66 | 48 | // lldb-command:print *t0 |
67 | | -// lldbg-check:[...]$6 = 5 |
| 49 | +// lldbg-check:[...]$4 = 5 |
68 | 50 | // lldbr-check:(i32) *t0 = 5 |
69 | 51 | // lldb-command:print *t1 |
70 | | -// lldbg-check:[...]$7 = Struct { a: 6, b: 7.5 } |
| 52 | +// lldbg-check:[...]$5 = Struct { a: 6, b: 7.5 } |
71 | 53 | // 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 } } |
75 | 54 | // lldb-command:continue |
76 | 55 |
|
77 | 56 | #![feature(omit_gdb_pretty_printer_section)] |
|
0 commit comments