1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
9 // gdb-command:print *boxed_with_padding
10 // gdbg-check:$1 = {x = 99, y = 999, z = 9999, w = 99999}
11 // gdbr-check:$1 = boxed_struct::StructWithSomePadding {x: 99, y: 999, z: 9999, w: 99999}
13 // gdb-command:print *boxed_with_dtor
14 // gdbg-check:$2 = {x = 77, y = 777, z = 7777, w = 77777}
15 // gdbr-check:$2 = boxed_struct::StructWithDestructor {x: 77, y: 777, z: 7777, w: 77777}
18 // === LLDB TESTS ==================================================================================
22 // lldb-command:print *boxed_with_padding
23 // lldbg-check:[...]$0 = { x = 99 y = 999 z = 9999 w = 99999 }
24 // lldbr-check:(boxed_struct::StructWithSomePadding) *boxed_with_padding = { x = 99 y = 999 z = 9999 w = 99999 }
26 // lldb-command:print *boxed_with_dtor
27 // lldbg-check:[...]$1 = { x = 77 y = 777 z = 7777 w = 77777 }
28 // lldbr-check:(boxed_struct::StructWithDestructor) *boxed_with_dtor = { x = 77 y = 777 z = 7777 w = 77777 }
30 #![allow(unused_variables)]
31 #![feature(omit_gdb_pretty_printer_section)]
32 #![omit_gdb_pretty_printer_section]
34 struct StructWithSomePadding {
41 struct StructWithDestructor {
48 impl Drop for StructWithDestructor {
54 let boxed_with_padding: Box<_> = Box::new(StructWithSomePadding {
61 let boxed_with_dtor: Box<_> = Box::new(StructWithDestructor {