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 ===================================================================================
19 // gdb-command:print shadowed
21 // gdb-command:print not_shadowed
23 // gdb-command:continue
25 // gdb-command:print shadowed
27 // gdb-command:print not_shadowed
29 // gdb-command:print local_to_arm
31 // gdb-command:continue
33 // gdb-command:print shadowed
35 // gdb-command:print not_shadowed
37 // gdb-command:continue
39 // gdb-command:print shadowed
41 // gdb-command:print not_shadowed
43 // gdb-command:print local_to_arm
44 // gdb-check:$10 = 238
45 // gdb-command:continue
47 // gdb-command:print shadowed
48 // gdb-check:$11 = 239
49 // gdb-command:print not_shadowed
50 // gdb-check:$12 = 232
51 // gdb-command:continue
53 // gdb-command:print shadowed
54 // gdb-check:$13 = 241
55 // gdb-command:print not_shadowed
56 // gdb-check:$14 = 232
57 // gdb-command:continue
59 // gdb-command:print shadowed
60 // gdb-check:$15 = 243
61 // gdb-command:print *local_to_arm
62 // gdb-check:$16 = 244
63 // gdb-command:continue
65 // gdb-command:print shadowed
66 // gdb-check:$17 = 231
67 // gdb-command:print not_shadowed
68 // gdb-check:$18 = 232
69 // gdb-command:continue
72 // === LLDB TESTS ==================================================================================
76 // lldb-command:print shadowed
77 // lldb-check:[...]$0 = 231
78 // lldb-command:print not_shadowed
79 // lldb-check:[...]$1 = 232
80 // lldb-command:continue
82 // lldb-command:print shadowed
83 // lldb-check:[...]$2 = 233
84 // lldb-command:print not_shadowed
85 // lldb-check:[...]$3 = 232
86 // lldb-command:print local_to_arm
87 // lldb-check:[...]$4 = 234
88 // lldb-command:continue
90 // lldb-command:print shadowed
91 // lldb-check:[...]$5 = 236
92 // lldb-command:print not_shadowed
93 // lldb-check:[...]$6 = 232
94 // lldb-command:continue
96 // lldb-command:print shadowed
97 // lldb-check:[...]$7 = 237
98 // lldb-command:print not_shadowed
99 // lldb-check:[...]$8 = 232
100 // lldb-command:print local_to_arm
101 // lldb-check:[...]$9 = 238
102 // lldb-command:continue
104 // lldb-command:print shadowed
105 // lldb-check:[...]$10 = 239
106 // lldb-command:print not_shadowed
107 // lldb-check:[...]$11 = 232
108 // lldb-command:continue
110 // lldb-command:print shadowed
111 // lldb-check:[...]$12 = 241
112 // lldb-command:print not_shadowed
113 // lldb-check:[...]$13 = 232
114 // lldb-command:continue
116 // lldb-command:print shadowed
117 // lldb-check:[...]$14 = 243
118 // lldb-command:print *local_to_arm
119 // lldb-check:[...]$15 = 244
120 // lldb-command:continue
122 // lldb-command:print shadowed
123 // lldb-check:[...]$16 = 231
124 // lldb-command:print not_shadowed
125 // lldb-check:[...]$17 = 232
126 // lldb-command:continue
128 #![omit_gdb_pretty_printer_section]
138 let not_shadowed
= 232;
144 (shadowed
, local_to_arm
) => {
161 match (Struct { x: 237, y: 238 }
) {
162 Struct { x: shadowed, y: local_to_arm }
=> {
169 match (Struct { x: 239, y: 240 }
) {
171 Struct { x: shadowed, .. }
=> {
178 match (Struct { x: 241, y: 242 }
) {
180 Struct { x: shadowed, y: 242 }
=> {
189 (shadowed
, ref local_to_arm
) => {