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:print y
22 // gdb-check:$2 = true
23 // gdb-command:continue
25 // gdb-command:print x
27 // gdb-command:print y
28 // gdb-check:$4 = true
29 // gdb-command:continue
31 // gdb-command:print x
32 // gdb-check:$5 = 10.5
33 // gdb-command:print y
35 // gdb-command:continue
37 // gdb-command:print x
38 // gdb-check:$7 = true
39 // gdb-command:print y
40 // gdb-check:$8 = 2220
41 // gdb-command:continue
43 // gdb-command:print x
44 // gdb-check:$9 = 203203.5
45 // gdb-command:print y
46 // gdb-check:$10 = 2220
47 // gdb-command:continue
49 // gdb-command:print x
50 // gdb-check:$11 = 10.5
51 // gdb-command:print y
53 // gdb-command:continue
56 // === LLDB TESTS ==================================================================================
60 // lldb-command:print x
61 // lldbg-check:[...]$0 = false
62 // lldbr-check:(bool) x = false
63 // lldb-command:print y
64 // lldbg-check:[...]$1 = true
65 // lldbr-check:(bool) y = true
66 // lldb-command:continue
68 // lldb-command:print x
69 // lldbg-check:[...]$2 = 10
70 // lldbr-check:(i32) x = 10
71 // lldb-command:print y
72 // lldbg-check:[...]$3 = true
73 // lldbr-check:(bool) y = true
74 // lldb-command:continue
76 // lldb-command:print x
77 // lldbg-check:[...]$4 = 10.5
78 // lldbr-check:(f64) x = 10.5
79 // lldb-command:print y
80 // lldbg-check:[...]$5 = 20
81 // lldbr-check:(i32) y = 20
82 // lldb-command:continue
84 // lldb-command:print x
85 // lldbg-check:[...]$6 = true
86 // lldbr-check:(bool) x = true
87 // lldb-command:print y
88 // lldbg-check:[...]$7 = 2220
89 // lldbr-check:(i32) y = 2220
90 // lldb-command:continue
92 // lldb-command:print x
93 // lldbg-check:[...]$8 = 203203.5
94 // lldbr-check:(f64) x = 203203.5
95 // lldb-command:print y
96 // lldbg-check:[...]$9 = 2220
97 // lldbr-check:(i32) y = 2220
98 // lldb-command:continue
100 // lldb-command:print x
101 // lldbg-check:[...]$10 = 10.5
102 // lldbr-check:(f64) x = 10.5
103 // lldb-command:print y
104 // lldbg-check:[...]$11 = 20
105 // lldbr-check:(i32) y = 20
106 // lldb-command:continue
108 #![feature(omit_gdb_pretty_printer_section)]
109 #![omit_gdb_pretty_printer_section]