1 // This test makes sure that the LLDB pretty printer does not throw an exception
2 // when trying to handle a Vec<> or anything else that contains zero-sized
5 // min-lldb-version: 310
10 // === LLDB TESTS ==================================================================================
13 // lldb-command:print v
14 // lldbg-check:[...]$0 = size=3 { [0] = 1 [1] = 2 [2] = 3 }
15 // lldbr-check:(alloc::vec::Vec<i32>) v = size=3 { [0] = 1 [1] = 2 [2] = 3 }
16 // lldb-command:print zs
17 // lldbg-check:[...]$1 = { x = y = 123 z = w = 456 }
18 // lldbr-check:(issue_22656::StructWithZeroSizedField) zs = { x = y = 123 z = w = 456 }
19 // lldbr-command:continue
21 #![allow(unused_variables)]
23 #![feature(omit_gdb_pretty_printer_section)]
24 #![omit_gdb_pretty_printer_section]
26 struct ZeroSizedStruct;
28 struct StructWithZeroSizedField {
38 let zs = StructWithZeroSizedField {