Added a test that makes sure that structs returned

from expressions return intact.

<rdar://problem/21146609>

llvm-svn: 238512
This commit is contained in:
Sean Callanan 2015-05-28 21:58:52 +00:00
parent 6555adb110
commit cc3489f662
1 changed files with 3 additions and 0 deletions

View File

@ -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