]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/simple-lexical-scope.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
29 // gdb-command:continue
31 // gdb-command:print x
33 // gdb-command:continue
35 // gdb-command:print x
36 // gdb-check:$5 = 10.5
37 // gdb-command:continue
39 // gdb-command:print x
41 // gdb-command:continue
43 // gdb-command:print x
44 // gdb-check:$7 = false
45 // gdb-command:continue
48 // === LLDB TESTS ==================================================================================
52 // lldb-command:print x
53 // lldbg-check:[...]$0 = false
54 // lldbr-check:(bool) x = false
55 // lldb-command:continue
57 // lldb-command:print x
58 // lldbg-check:[...]$1 = false
59 // lldbr-check:(bool) x = false
60 // lldb-command:continue
62 // lldb-command:print x
63 // lldbg-check:[...]$2 = 10
64 // lldbr-check:(i32) x = 10
65 // lldb-command:continue
67 // lldb-command:print x
68 // lldbg-check:[...]$3 = 10
69 // lldbr-check:(i32) x = 10
70 // lldb-command:continue
72 // lldb-command:print x
73 // lldbg-check:[...]$4 = 10.5
74 // lldbr-check:(f64) x = 10.5
75 // lldb-command:continue
77 // lldb-command:print x
78 // lldbg-check:[...]$5 = 10
79 // lldbr-check:(i32) x = 10
80 // lldb-command:continue
82 // lldb-command:print x
83 // lldbg-check:[...]$6 = false
84 // lldbr-check:(bool) x = false
85 // lldb-command:continue
88 #![feature(omit_gdb_pretty_printer_section)]
89 #![omit_gdb_pretty_printer_section]