1 // Copyright 2013-2016 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 // Check that structs get placed in the correct namespace
18 // lldb-command:p struct1
19 // lldb-check:(struct_namespace::Struct1) $0 = [...]
20 // lldb-command:p struct2
21 // lldb-check:(struct_namespace::Struct2) $1 = [...]
23 // lldb-command:p mod1_struct1
24 // lldb-check:(struct_namespace::mod1::Struct1) $2 = [...]
25 // lldb-command:p mod1_struct2
26 // lldb-check:(struct_namespace::mod1::Struct2) $3 = [...]
28 #![allow(unused_variables)]
30 #![feature(omit_gdb_pretty_printer_section)]
31 #![omit_gdb_pretty_printer_section]
47 pub struct Struct2(pub u32);
52 let struct1 = Struct1 {
57 let struct2 = Struct2(2);
59 let mod1_struct1 = mod1::Struct1 {
64 let mod1_struct2 = mod1::Struct2(5);