Skip to content

Commit c7ef85c

Browse files
committed
Add test for 'invalid literal for int()' exception in gdb pretty-printers
1 parent 10977bc commit c7ef85c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/debuginfo/pretty-std.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
// gdbg-check:$6 = None
3939
// gdbr-check:$6 = core::option::Option::None
4040

41+
// gdb-command: print some_string
42+
// gdbr-check:$7 = Some = {"IAMA optional string!"}
43+
4144

4245
// === LLDB TESTS ==================================================================================
4346

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

88+
let some_string = Some("IAMA optional string!".to_owned());
89+
8590
zzz(); // #break
8691
}
8792

0 commit comments

Comments
 (0)