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
29 // gdb-command:print x
31 // gdb-command:continue
33 // gdb-command:print x
35 // gdb-command:continue
38 // gdb-command:print x
40 // gdb-command:continue
42 // gdb-command:print x
44 // gdb-command:continue
47 // gdb-command:print x
48 // gdb-check:$7 = 1000000
49 // gdb-command:continue
52 // === LLDB TESTS ==================================================================================
57 // lldb-command:print x
58 // lldb-check:[...]$0 = 1
59 // lldb-command:continue
61 // lldb-command:print x
62 // lldb-check:[...]$1 = -1
63 // lldb-command:continue
66 // lldb-command:print x
67 // lldb-check:[...]$2 = 2
68 // lldb-command:continue
70 // lldb-command:print x
71 // lldb-check:[...]$3 = -2
72 // lldb-command:continue
75 // lldb-command:print x
76 // lldb-check:[...]$4 = 3
77 // lldb-command:continue
79 // lldb-command:print x
80 // lldb-check:[...]$5 = -3
81 // lldb-command:continue
84 // lldb-command:print x
85 // lldb-check:[...]$6 = 1000000
86 // lldb-command:continue
88 #![feature(omit_gdb_pretty_printer_section)]
89 #![omit_gdb_pretty_printer_section]
93 let range = [1, 2, 3];
95 let x = 1000000; // wan meeeljen doollaars!