]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/lexical-scope-in-stack-closure.rs
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 // lldb-check:[...]$0 = false
50 // lldb-command:continue
52 // lldb-command:print x
53 // lldb-check:[...]$1 = false
54 // lldb-command:continue
56 // lldb-command:print x
57 // lldb-check:[...]$2 = 1000
58 // lldb-command:continue
60 // lldb-command:print x
61 // lldb-check:[...]$3 = 2.5
62 // lldb-command:continue
64 // lldb-command:print x
65 // lldb-check:[...]$4 = true
66 // lldb-command:continue
68 // lldb-command:print x
69 // lldb-check:[...]$5 = false
70 // lldb-command:continue
72 #![omit_gdb_pretty_printer_section]
81 let closure
= |x
: isize| {