diff options
Diffstat (limited to 'lldb/test/lang/c/strings/TestCStrings.py')
-rw-r--r-- | lldb/test/lang/c/strings/TestCStrings.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/test/lang/c/strings/TestCStrings.py b/lldb/test/lang/c/strings/TestCStrings.py index 84c00a47231..e906ad6ae2c 100644 --- a/lldb/test/lang/c/strings/TestCStrings.py +++ b/lldb/test/lang/c/strings/TestCStrings.py @@ -50,6 +50,15 @@ class CStringsTestCase(TestBase): self.expect("expression -- \"\"[0]", startstr = "(const char) $4 = '\\0'") + self.expect("p \"hello\"", + substrs = ['(const char [6]) $', 'hello', + '(const char) [0] = \'h\'', + '(const char) [5] = \'\\0\'']) + + self.expect("p (char*)\"hello\"", + substrs = ['(char *) $', ' = 0x', + 'hello']) + if __name__ == '__main__': import atexit lldb.SBDebugger.Initialize() |