Add support for constant arrays, from Anders Waldenborg!.

llvm-svn: 142477
This commit is contained in:
Douglas Gregor
2011-10-19 05:51:43 +00:00
parent 89861066ed
commit 5fdc4de718
2 changed files with 24 additions and 0 deletions

View File

@@ -90,6 +90,10 @@ def testConstantArray():
fields = list(n.get_children())
assert fields[0].spelling == 'A'
assert fields[0].type.kind == TypeKind.CONSTANTARRAY
assert fields[0].type.get_array_element_type() is not None
assert fields[0].type.get_array_element_type().kind == TypeKind.POINTER
assert fields[0].type.get_array_size() == 2
break
else:
assert False, "Didn't find teststruct??"