diff options
| author | gentoo90 <gentoo90@gmail.com> | 2017-06-01 21:26:09 +0300 |
|---|---|---|
| committer | gentoo90 <gentoo90@gmail.com> | 2017-06-01 21:26:09 +0300 |
| commit | c7ef85ca0eb09acad16d2f969e69737308290309 (patch) | |
| tree | c810b1a7de9198c88b613c4e35fedb488ed8312c /src/test/debuginfo | |
| parent | 10977bcf6cb278895313045b048851bef019272d (diff) | |
| download | rust-c7ef85ca0eb09acad16d2f969e69737308290309.tar.gz rust-c7ef85ca0eb09acad16d2f969e69737308290309.zip | |
Add test for 'invalid literal for int()' exception in gdb pretty-printers
Diffstat (limited to 'src/test/debuginfo')
| -rw-r--r-- | src/test/debuginfo/pretty-std.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/debuginfo/pretty-std.rs b/src/test/debuginfo/pretty-std.rs index 153f0c8271f..a1a2cd67bb3 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<i64> = None; + let some_string = Some("IAMA optional string!".to_owned()); + zzz(); // #break } |
