summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-05-28 21:58:52 +0000
committerSean Callanan <scallanan@apple.com>2015-05-28 21:58:52 +0000
commitcc3489f6622aa1bab13605d6f4d22f4faa15e0a6 (patch)
tree62fc52a54ab03a6593b4476dbf53ad0870ae3ffc
parent6555adb110d17d751fd4849e4fd35f48edc4e476 (diff)
downloadbcm5719-llvm-cc3489f6622aa1bab13605d6f4d22f4faa15e0a6.tar.gz
bcm5719-llvm-cc3489f6622aa1bab13605d6f4d22f4faa15e0a6.zip
Added a test that makes sure that structs returned
from expressions return intact. <rdar://problem/21146609> llvm-svn: 238512
-rw-r--r--lldb/test/expression_command/persistent_types/TestPersistentTypes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py
index 972a2f6ae59..06162c78c7f 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
OpenPOWER on IntegriCloud