From cc3489f6622aa1bab13605d6f4d22f4faa15e0a6 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 28 May 2015 21:58:52 +0000 Subject: [PATCH] Added a test that makes sure that structs returned from expressions return intact. llvm-svn: 238512 --- .../expression_command/persistent_types/TestPersistentTypes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py index 972a2f6ae598..06162c78c7fb 100644 --- a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py +++ b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py @@ -43,6 +43,9 @@ class PersistenttypesTestCase(TestBase): self.expect("memory read foo -t foobar", substrs = ['($foobar) 0x', ' = ', "a = 'H'","b = 'e'","c = 'l'","d = 'l'"],matching=False,error=True) # the type name is $foobar, make sure we settle for nothing less + self.expect("expression struct { int a; int b; } x = { 2, 3 }; x", + substrs = ['a = 2', 'b = 3']) + if __name__ == '__main__': import atexit