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 ===================================================================================
20 // gdb-command:print x
21 // gdb-check:$1 = false
22 // gdb-command:continue
24 // gdb-command:print x
25 // gdb-check:$2 = false
26 // gdb-command:continue
28 // gdb-command:print x
29 // gdb-check:$3 = 1000
30 // gdb-command:continue
32 // gdb-command:print x
34 // gdb-command:continue
36 // gdb-command:print x
37 // gdb-check:$5 = true
38 // gdb-command:continue
40 // gdb-command:print x
41 // gdb-check:$6 = false
42 // gdb-command:continue
45 // === LLDB TESTS ==================================================================================
49 // lldb-command:print x
50 // lldb-check:[...]$0 = false
51 // lldb-command:continue
53 // lldb-command:print x
54 // lldb-check:[...]$1 = false
55 // lldb-command:continue
57 // lldb-command:print x
58 // lldb-check:[...]$2 = 1000
59 // lldb-command:continue
61 // lldb-command:print x
62 // lldb-check:[...]$3 = 2.5
63 // lldb-command:continue
65 // lldb-command:print x
66 // lldb-check:[...]$4 = true
67 // lldb-command:continue
69 // lldb-command:print x
70 // lldb-check:[...]$5 = false
71 // lldb-command:continue
73 #![omit_gdb_pretty_printer_section]
82 let closure = |&: x: int| {