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 // ignore-android: FIXME(#10381)
12 // min-lldb-version: 310
16 // === GDB TESTS ===================================================================================
21 // gdb-command:print x
23 // gdb-command:continue
25 // gdb-command:print x
27 // gdb-command:continue
30 // gdb-command:print x
32 // gdb-command:continue
34 // gdb-command:print x
36 // gdb-command:continue
39 // gdb-command:print x
41 // gdb-command:continue
43 // gdb-command:print x
45 // gdb-command:continue
48 // gdb-command:print x
49 // gdb-check:$7 = 1000000
50 // gdb-command:continue
53 // === LLDB TESTS ==================================================================================
58 // lldb-command:print x
59 // lldb-check:[...]$0 = 1
60 // lldb-command:continue
62 // lldb-command:print x
63 // lldb-check:[...]$1 = -1
64 // lldb-command:continue
67 // lldb-command:print x
68 // lldb-check:[...]$2 = 2
69 // lldb-command:continue
71 // lldb-command:print x
72 // lldb-check:[...]$3 = -2
73 // lldb-command:continue
76 // lldb-command:print x
77 // lldb-check:[...]$4 = 3
78 // lldb-command:continue
80 // lldb-command:print x
81 // lldb-check:[...]$5 = -3
82 // lldb-command:continue
85 // lldb-command:print x
86 // lldb-check:[...]$6 = 1000000
87 // lldb-command:continue
91 let range = [1i, 2, 3];
93 let x = 1000000i; // wan meeeljen doollaars!
95 for &x in range.iter() {