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.
13 // min-lldb-version: 310
15 // === GDB TESTS ===================================================================================
19 // gdb-command:print *the_a_ref
20 // gdb-check:$1 = TheA
22 // gdb-command:print *the_b_ref
23 // gdb-check:$2 = TheB
25 // gdb-command:print *the_c_ref
26 // gdb-check:$3 = TheC
29 // === LLDB TESTS ==================================================================================
33 // lldb-command:print *the_a_ref
34 // lldb-check:[...]$0 = TheA
36 // lldb-command:print *the_b_ref
37 // lldb-check:[...]$1 = TheB
39 // lldb-command:print *the_c_ref
40 // lldb-check:[...]$2 = TheC
42 #![allow(unused_variables)]
43 #![feature(omit_gdb_pretty_printer_section)]
44 #![omit_gdb_pretty_printer_section]
46 enum ABC { TheA, TheB, TheC }
49 let the_a = ABC::TheA;
50 let the_a_ref: &ABC = &the_a;
52 let the_b = ABC::TheB;
53 let the_b_ref: &ABC = &the_b;
55 let the_c = ABC::TheC;
56 let the_c_ref: &ABC = &the_c;