summaryrefslogtreecommitdiffstats
path: root/bindings/python/tests
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-19 05:51:43 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-19 05:51:43 +0000
commit13102ffbb00f1397fa02950e0cbc82d17be21792 (patch)
treec8f8a9169159e84594abf5702e6b84e9fbc625e0 /bindings/python/tests
parent38d2d5539e72ce3d92c4746b632f3a7c2e48b4a2 (diff)
Add support for constant arrays, from Anders Waldenborg!.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/tests')
-rw-r--r--bindings/python/tests/cindex/test_type.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/tests/cindex/test_type.py b/bindings/python/tests/cindex/test_type.py
index 35c7bbbfa2..2a35f6e756 100644
--- a/bindings/python/tests/cindex/test_type.py
+++ b/bindings/python/tests/cindex/test_type.py
@@ -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??"