Skip to content
5 changes: 5 additions & 0 deletions src/test/debuginfo/pretty-std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
// gdbg-check:$6 = None
// gdbr-check:$6 = core::option::Option::None

// gdb-command: print some_string
// gdbr-check:$7 = Some = {"IAMA optional string!"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try making this gdb-check instead of just gdbr-check, so both kinds of GDB are tested.



// === LLDB TESTS ==================================================================================

Expand Down Expand Up @@ -82,6 +85,8 @@ fn main() {
let some = Some(8i16);
let none: Option<i64> = None;

let some_string = Some("IAMA optional string!".to_owned());

zzz(); // #break
}

Expand Down