]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/name-shadowing-and-scope-nesting.rs
1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
10 // gdb-check:$1 = false
11 // gdb-command:print y
12 // gdb-check:$2 = true
13 // gdb-command:continue
15 // gdb-command:print x
17 // gdb-command:print y
18 // gdb-check:$4 = true
19 // gdb-command:continue
21 // gdb-command:print x
22 // gdb-check:$5 = 10.5
23 // gdb-command:print y
25 // gdb-command:continue
27 // gdb-command:print x
28 // gdb-check:$7 = true
29 // gdb-command:print y
30 // gdb-check:$8 = 2220
31 // gdb-command:continue
33 // gdb-command:print x
34 // gdb-check:$9 = 203203.5
35 // gdb-command:print y
36 // gdb-check:$10 = 2220
37 // gdb-command:continue
39 // gdb-command:print x
40 // gdb-check:$11 = 10.5
41 // gdb-command:print y
43 // gdb-command:continue
46 // === LLDB TESTS ==================================================================================
50 // lldb-command:print x
51 // lldbg-check:[...]$0 = false
52 // lldbr-check:(bool) x = false
53 // lldb-command:print y
54 // lldbg-check:[...]$1 = true
55 // lldbr-check:(bool) y = true
56 // lldb-command:continue
58 // lldb-command:print x
59 // lldbg-check:[...]$2 = 10
60 // lldbr-check:(i32) x = 10
61 // lldb-command:print y
62 // lldbg-check:[...]$3 = true
63 // lldbr-check:(bool) y = true
64 // lldb-command:continue
66 // lldb-command:print x
67 // lldbg-check:[...]$4 = 10.5
68 // lldbr-check:(f64) x = 10.5
69 // lldb-command:print y
70 // lldbg-check:[...]$5 = 20
71 // lldbr-check:(i32) y = 20
72 // lldb-command:continue
74 // lldb-command:print x
75 // lldbg-check:[...]$6 = true
76 // lldbr-check:(bool) x = true
77 // lldb-command:print y
78 // lldbg-check:[...]$7 = 2220
79 // lldbr-check:(i32) y = 2220
80 // lldb-command:continue
82 // lldb-command:print x
83 // lldbg-check:[...]$8 = 203203.5
84 // lldbr-check:(f64) x = 203203.5
85 // lldb-command:print y
86 // lldbg-check:[...]$9 = 2220
87 // lldbr-check:(i32) y = 2220
88 // lldb-command:continue
90 // lldb-command:print x
91 // lldbg-check:[...]$10 = 10.5
92 // lldbr-check:(f64) x = 10.5
93 // lldb-command:print y
94 // lldbg-check:[...]$11 = 20
95 // lldbr-check:(i32) y = 20
96 // lldb-command:continue
98 #![feature(omit_gdb_pretty_printer_section)]
99 #![omit_gdb_pretty_printer_section]