1 // ignore-tidy-linelength
3 // min-lldb-version: 310
7 // === GDB TESTS ===================================================================================
11 // gdb-command:print *boxed_with_padding
12 // gdbg-check:$1 = {x = 99, y = 999, z = 9999, w = 99999}
13 // gdbr-check:$1 = boxed_struct::StructWithSomePadding {x: 99, y: 999, z: 9999, w: 99999}
15 // gdb-command:print *boxed_with_dtor
16 // gdbg-check:$2 = {x = 77, y = 777, z = 7777, w = 77777}
17 // gdbr-check:$2 = boxed_struct::StructWithDestructor {x: 77, y: 777, z: 7777, w: 77777}
20 // === LLDB TESTS ==================================================================================
24 // lldb-command:print *boxed_with_padding
25 // lldbg-check:[...]$0 = { x = 99 y = 999 z = 9999 w = 99999 }
26 // lldbr-check:(boxed_struct::StructWithSomePadding) *boxed_with_padding = { x = 99 y = 999 z = 9999 w = 99999 }
28 // lldb-command:print *boxed_with_dtor
29 // lldbg-check:[...]$1 = { x = 77 y = 777 z = 7777 w = 77777 }
30 // lldbr-check:(boxed_struct::StructWithDestructor) *boxed_with_dtor = { x = 77 y = 777 z = 7777 w = 77777 }
32 #![allow(unused_variables)]
33 #![feature(box_syntax)]
34 #![feature(omit_gdb_pretty_printer_section)]
35 #![omit_gdb_pretty_printer_section]
37 struct StructWithSomePadding {
44 struct StructWithDestructor {
51 impl Drop for StructWithDestructor {
57 let boxed_with_padding: Box<_> = box StructWithSomePadding { x: 99, y: 999, z: 9999, w: 99999 };
59 let boxed_with_dtor: Box<_> = box StructWithDestructor { x: 77, y: 777, z: 7777, w: 77777 };