Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Rust
Raw Permalink Normal View History

2024-04-15 11:44:14 +00:00
//@ ignore-gdb-version: 15.0 - 99.0
// ^ test temporarily disabled as it fails under gdb 15
2014-01-08 09:59:11 +01:00
2014-02-06 19:57:09 -08:00
//@ compile-flags:-g
//@ disable-gdb-pretty-printers
//@ ignore-backends: gcc
//@ gdb-command:run
//@ gdb-command:print string1.length
//@ gdb-check:$1 = 48
//@ gdb-command:print string2.length
//@ gdb-check:$2 = 49
//@ gdb-command:print string3.length
//@ gdb-check:$3 = 50
//@ gdb-command:continue
2014-01-08 09:59:11 +01:00
// === LLDB TESTS ==================================================================================
//@ lldb-command:run
//@ lldb-command:v string1.length
//@ lldb-check:[...] 48
//@ lldb-command:v string2.length
//@ lldb-check:[...] 49
//@ lldb-command:v string3.length
//@ lldb-check:[...] 50
//@ lldb-command:continue
2014-10-27 15:37:07 -07:00
#![allow(unused_variables)]
2014-01-08 09:59:11 +01:00
2014-02-05 16:33:10 -06:00
// This test case makes sure that debug info does not ICE when include_str is
2014-01-08 09:59:11 +01:00
// used multiple times (see issue #11322).
fn main() {
let string1 = include_str!("text-to-include-1.txt");
let string2 = include_str!("text-to-include-2.txt");
let string3 = include_str!("text-to-include-3.txt");
zzz(); // #break
2014-01-08 09:59:11 +01:00
}
fn zzz() {()}