about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorgentoo90 <gentoo90@gmail.com>2017-06-02 16:18:00 +0300
committergentoo90 <gentoo90@gmail.com>2017-06-02 16:18:00 +0300
commitc1f687b73fc76808d8f4555d6f77b7f64e554fa9 (patch)
tree86175ea36005e296752f269b6a58e9f35960bd09 /src/test/debuginfo
parentc7ef85ca0eb09acad16d2f969e69737308290309 (diff)
downloadrust-c1f687b73fc76808d8f4555d6f77b7f64e554fa9.tar.gz
rust-c1f687b73fc76808d8f4555d6f77b7f64e554fa9.zip
Add GDB pretty-printer for OsString
Diffstat (limited to 'src/test/debuginfo')
-rw-r--r--src/test/debuginfo/pretty-std.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/test/debuginfo/pretty-std.rs b/src/test/debuginfo/pretty-std.rs
index a1a2cd67bb3..88a3c76b858 100644
--- a/src/test/debuginfo/pretty-std.rs
+++ b/src/test/debuginfo/pretty-std.rs
@@ -38,8 +38,11 @@
 // gdbg-check:$6 = None
 // gdbr-check:$6 = core::option::Option::None
 
-// gdb-command: print some_string
-// gdbr-check:$7 = Some = {"IAMA optional string!"}
+// gdbr-command: print os_string
+// gdbr-check:$7 = "IAMA OS string 😃"
+
+// gdbr-command: print some_string
+// gdbr-check:$8 = Some = {"IAMA optional string!"}
 
 
 // === LLDB TESTS ==================================================================================
@@ -66,6 +69,8 @@
 
 
 #![allow(unused_variables)]
+use std::ffi::OsString;
+
 
 fn main() {
 
@@ -81,6 +86,9 @@ fn main() {
     // String
     let string = "IAMA string!".to_string();
 
+    // OsString
+    let os_string = OsString::from("IAMA OS string \u{1F603}");
+
     // Option
     let some = Some(8i16);
     let none: Option<i64> = None;