1 // min-lldb-version: 310
5 // gdb-command:print string1.length
7 // gdb-command:print string2.length
9 // gdb-command:print string3.length
11 // gdb-command:continue
14 // === LLDB TESTS ==================================================================================
18 // lldb-command:print string1.length
19 // lldbg-check:[...]$0 = 48
20 // lldbr-check:(usize) length = 48
21 // lldb-command:print string2.length
22 // lldbg-check:[...]$1 = 49
23 // lldbr-check:(usize) length = 49
24 // lldb-command:print string3.length
25 // lldbg-check:[...]$2 = 50
26 // lldbr-check:(usize) length = 50
28 // lldb-command:continue
30 #![allow(unused_variables)]
31 #![feature(omit_gdb_pretty_printer_section)]
32 #![omit_gdb_pretty_printer_section]
34 // This test case makes sure that debug info does not ICE when include_str is
35 // used multiple times (see issue #11322).
38 let string1 = include_str!("text-to-include-1.txt");
39 let string2 = include_str!("text-to-include-2.txt");
40 let string3 = include_str!("text-to-include-3.txt");