mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Add support for constant arrays, from Anders Waldenborg!.
llvm-svn: 142477
This commit is contained in:
@@ -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??"
|
||||
|
||||
Reference in New Issue
Block a user