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-command:print string1.length
17 // gdb-command:print string2.length
19 // gdb-command:print string3.length
21 // gdb-command:continue
24 // === LLDB TESTS ==================================================================================
28 // lldb-command:print string1.length
29 // lldbg-check:[...]$0 = 48
30 // lldbr-check:(usize) length = 48
31 // lldb-command:print string2.length
32 // lldbg-check:[...]$1 = 49
33 // lldbr-check:(usize) length = 49
34 // lldb-command:print string3.length
35 // lldbg-check:[...]$2 = 50
36 // lldbr-check:(usize) length = 50
38 // lldb-command:continue
40 #![allow(unused_variables)]
41 #![feature(omit_gdb_pretty_printer_section)]
42 #![omit_gdb_pretty_printer_section]
44 // This test case makes sure that debug info does not ICE when include_str is
45 // used multiple times (see issue #11322).
48 let string1 = include_str!("text-to-include-1.txt");
49 let string2 = include_str!("text-to-include-2.txt");
50 let string3 = include_str!("text-to-include-3.txt");