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 *unique
20 // gdb-check:$1 = {x = 99, y = 999, z = 9999, w = 99999}
22 // gdb-command:print *unique_dtor
23 // gdb-check:$2 = {x = 77, y = 777, z = 7777, w = 77777}
26 // === LLDB TESTS ==================================================================================
30 // lldb-command:print *unique
31 // lldb-check:[...]$0 = StructWithSomePadding { x: 99, y: 999, z: 9999, w: 99999 }
33 // lldb-command:print *unique_dtor
34 // lldb-check:[...]$1 = StructWithDestructor { x: 77, y: 777, z: 7777, w: 77777 }
36 #![allow(unused_variables)]
37 #![feature(box_syntax)]
38 #![feature(omit_gdb_pretty_printer_section)]
39 #![omit_gdb_pretty_printer_section]
41 struct StructWithSomePadding
{
48 struct StructWithDestructor
{
55 impl Drop
for StructWithDestructor
{
61 let unique
: Box
<_
> = box StructWithSomePadding { x: 99, y: 999, z: 9999, w: 99999 }
;
63 let unique_dtor
: Box
<_
> = box StructWithDestructor { x: 77, y: 777, z: 7777, w: 77777 }
;