From c7ef85ca0eb09acad16d2f969e69737308290309 Mon Sep 17 00:00:00 2001 From: gentoo90 Date: Thu, 1 Jun 2017 21:26:09 +0300 Subject: [PATCH] Add test for 'invalid literal for int()' exception in gdb pretty-printers --- src/test/debuginfo/pretty-std.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/debuginfo/pretty-std.rs b/src/test/debuginfo/pretty-std.rs index 153f0c8271fc..a1a2cd67bb33 100644 --- a/src/test/debuginfo/pretty-std.rs +++ b/src/test/debuginfo/pretty-std.rs @@ -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!"} + // === LLDB TESTS ================================================================================== @@ -82,6 +85,8 @@ fn main() { let some = Some(8i16); let none: Option = None; + let some_string = Some("IAMA optional string!".to_owned()); + zzz(); // #break }