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 x
20 // gdb-check:$1 = false
21 // gdb-command:continue
23 // gdb-command:print x
24 // gdb-check:$2 = false
25 // gdb-command:continue
27 // gdb-command:print x
28 // gdb-check:$3 = 1000
29 // gdb-command:continue
31 // gdb-command:print x
33 // gdb-command:continue
35 // gdb-command:print x
36 // gdb-check:$5 = true
37 // gdb-command:continue
39 // gdb-command:print x
40 // gdb-check:$6 = false
41 // gdb-command:continue
44 // === LLDB TESTS ==================================================================================
48 // lldb-command:print x
49 // lldbg-check:[...]$0 = false
50 // lldbr-check:(bool) x = false
51 // lldb-command:continue
53 // lldb-command:print x
54 // lldbg-check:[...]$1 = false
55 // lldbr-check:(bool) x = false
56 // lldb-command:continue
58 // lldb-command:print x
59 // lldbg-check:[...]$2 = 1000
60 // lldbr-check:(isize) x = 1000
61 // lldb-command:continue
63 // lldb-command:print x
64 // lldbg-check:[...]$3 = 2.5
65 // lldbr-check:(f64) x = 2.5
66 // lldb-command:continue
68 // lldb-command:print x
69 // lldbg-check:[...]$4 = true
70 // lldbr-check:(bool) x = true
71 // lldb-command:continue
73 // lldb-command:print x
74 // lldbg-check:[...]$5 = false
75 // lldbr-check:(bool) x = false
76 // lldb-command:continue
79 #![feature(omit_gdb_pretty_printer_section)]
80 #![omit_gdb_pretty_printer_section]
89 let unique_closure = |x:isize| {
107 unique_closure(1000);