]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/lexical-scope-in-unconditional-loop.rs
1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // min-lldb-version: 310
15 // === GDB TESTS ===================================================================================
20 // gdb-command:print x
22 // gdb-command:continue
24 // gdb-command:print x
26 // gdb-command:continue
28 // gdb-command:print x
30 // gdb-command:continue
32 // gdb-command:print x
34 // gdb-command:continue
36 // gdb-command:print x
37 // gdb-check:$5 = -987
38 // gdb-command:continue
40 // gdb-command:print x
42 // gdb-command:continue
46 // gdb-command:print x
48 // gdb-command:continue
50 // gdb-command:print x
52 // gdb-command:continue
54 // gdb-command:print x
56 // gdb-command:continue
58 // gdb-command:print x
59 // gdb-check:$10 = 102
60 // gdb-command:continue
62 // gdb-command:print x
63 // gdb-check:$11 = -987
64 // gdb-command:continue
66 // gdb-command:print x
67 // gdb-check:$12 = 102
68 // gdb-command:continue
70 // gdb-command:print x
72 // gdb-command:continue
75 // === LLDB TESTS ==================================================================================
80 // lldb-command:print x
81 // lldb-check:[...]$0 = 0
82 // lldb-command:continue
84 // lldb-command:print x
85 // lldb-check:[...]$1 = 1
86 // lldb-command:continue
88 // lldb-command:print x
89 // lldb-check:[...]$2 = 101
90 // lldb-command:continue
92 // lldb-command:print x
93 // lldb-check:[...]$3 = 101
94 // lldb-command:continue
96 // lldb-command:print x
97 // lldb-check:[...]$4 = -987
98 // lldb-command:continue
100 // lldb-command:print x
101 // lldb-check:[...]$5 = 101
102 // lldb-command:continue
106 // lldb-command:print x
107 // lldb-check:[...]$6 = 1
108 // lldb-command:continue
110 // lldb-command:print x
111 // lldb-check:[...]$7 = 2
112 // lldb-command:continue
114 // lldb-command:print x
115 // lldb-check:[...]$8 = 102
116 // lldb-command:continue
118 // lldb-command:print x
119 // lldb-check:[...]$9 = 102
120 // lldb-command:continue
122 // lldb-command:print x
123 // lldb-check:[...]$10 = -987
124 // lldb-command:continue
126 // lldb-command:print x
127 // lldb-check:[...]$11 = 102
128 // lldb-command:continue
130 // lldb-command:print x
131 // lldb-check:[...]$12 = 2
132 // lldb-command:continue
134 #![omit_gdb_pretty_printer_section]
157 // open scope within loop's top level scope
168 // Check that we get the x before the inner scope again