]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | // min-lldb-version: 310 |
2 | ||
3 | // compile-flags:-g | |
4 | ||
5 | // === GDB TESTS =================================================================================== | |
6 | ||
7 | // gdb-command:run | |
8 | ||
9 | // gdb-command:print x | |
10 | // gdb-check:$1 = false | |
11 | // gdb-command:continue | |
12 | ||
13 | // gdb-command:print x | |
14 | // gdb-check:$2 = false | |
15 | // gdb-command:continue | |
16 | ||
17 | // gdb-command:print x | |
18 | // gdb-check:$3 = 10 | |
19 | // gdb-command:continue | |
20 | ||
21 | // gdb-command:print x | |
22 | // gdb-check:$4 = 10 | |
23 | // gdb-command:continue | |
24 | ||
25 | // gdb-command:print x | |
26 | // gdb-check:$5 = 10.5 | |
27 | // gdb-command:continue | |
28 | ||
29 | // gdb-command:print x | |
30 | // gdb-check:$6 = 10 | |
31 | // gdb-command:continue | |
32 | ||
33 | // gdb-command:print x | |
34 | // gdb-check:$7 = false | |
35 | // gdb-command:continue | |
36 | ||
37 | ||
38 | // === LLDB TESTS ================================================================================== | |
39 | ||
40 | // lldb-command:run | |
41 | ||
42 | // lldb-command:print x | |
0bf4aa26 XL |
43 | // lldbg-check:[...]$0 = false |
44 | // lldbr-check:(bool) x = false | |
1a4d82fc JJ |
45 | // lldb-command:continue |
46 | ||
47 | // lldb-command:print x | |
0bf4aa26 XL |
48 | // lldbg-check:[...]$1 = false |
49 | // lldbr-check:(bool) x = false | |
1a4d82fc JJ |
50 | // lldb-command:continue |
51 | ||
52 | // lldb-command:print x | |
0bf4aa26 XL |
53 | // lldbg-check:[...]$2 = 10 |
54 | // lldbr-check:(i32) x = 10 | |
1a4d82fc JJ |
55 | // lldb-command:continue |
56 | ||
57 | // lldb-command:print x | |
0bf4aa26 XL |
58 | // lldbg-check:[...]$3 = 10 |
59 | // lldbr-check:(i32) x = 10 | |
1a4d82fc JJ |
60 | // lldb-command:continue |
61 | ||
62 | // lldb-command:print x | |
0bf4aa26 XL |
63 | // lldbg-check:[...]$4 = 10.5 |
64 | // lldbr-check:(f64) x = 10.5 | |
1a4d82fc JJ |
65 | // lldb-command:continue |
66 | ||
67 | // lldb-command:print x | |
0bf4aa26 XL |
68 | // lldbg-check:[...]$5 = 10 |
69 | // lldbr-check:(i32) x = 10 | |
1a4d82fc JJ |
70 | // lldb-command:continue |
71 | ||
72 | // lldb-command:print x | |
0bf4aa26 XL |
73 | // lldbg-check:[...]$6 = false |
74 | // lldbr-check:(bool) x = false | |
1a4d82fc JJ |
75 | // lldb-command:continue |
76 | ||
77 | ||
b039eaaf | 78 | #![feature(omit_gdb_pretty_printer_section)] |
1a4d82fc JJ |
79 | #![omit_gdb_pretty_printer_section] |
80 | ||
81 | fn main() { | |
82 | let x = false; | |
83 | ||
84 | zzz(); // #break | |
85 | sentinel(); | |
86 | ||
87 | { | |
88 | zzz(); // #break | |
89 | sentinel(); | |
90 | ||
85aaf69f | 91 | let x = 10; |
1a4d82fc JJ |
92 | |
93 | zzz(); // #break | |
94 | sentinel(); | |
95 | ||
96 | { | |
97 | zzz(); // #break | |
98 | sentinel(); | |
99 | ||
100 | let x = 10.5f64; | |
101 | ||
102 | zzz(); // #break | |
103 | sentinel(); | |
104 | } | |
105 | ||
106 | zzz(); // #break | |
107 | sentinel(); | |
108 | } | |
109 | ||
110 | zzz(); // #break | |
111 | sentinel(); | |
112 | } | |
113 | ||
114 | fn zzz() {()} | |
115 | fn sentinel() {()} |