summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 00:43:03 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 00:43:03 +0000
commitf872dc4c3b515f4467437f4c150b41e86c8f48d6 (patch)
tree0ca230fe4eafc2d025cecc77aa9e3da660093d0f /clang/bindings/python/tests
parent6f5bd2f6300925ae8517da81491b923958e797a6 (diff)
downloadbcm5719-llvm-f872dc4c3b515f4467437f4c150b41e86c8f48d6.tar.gz
bcm5719-llvm-f872dc4c3b515f4467437f4c150b41e86c8f48d6.zip
[python] Add support for CXType to python bindings.
Patch by Anders Waldenborg! llvm-svn: 137797
Diffstat (limited to 'clang/bindings/python/tests')
-rw-r--r--clang/bindings/python/tests/cindex/test_cursor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py
index a653ba7bf28..04e48389456 100644
--- a/clang/bindings/python/tests/cindex/test_cursor.py
+++ b/clang/bindings/python/tests/cindex/test_cursor.py
@@ -1,4 +1,4 @@
-from clang.cindex import Index, CursorKind
+from clang.cindex import Index, CursorKind, TypeKind
kInput = """\
// FIXME: Find nicer way to drop builtins and other cruft.
@@ -47,8 +47,10 @@ def test_get_children():
assert len(s0_nodes) == 2
assert s0_nodes[0].kind == CursorKind.FIELD_DECL
assert s0_nodes[0].spelling == 'a'
+ assert s0_nodes[0].type.kind == TypeKind.INT
assert s0_nodes[1].kind == CursorKind.FIELD_DECL
assert s0_nodes[1].spelling == 'b'
+ assert s0_nodes[1].type.kind == TypeKind.INT
assert tu_nodes[1].kind == CursorKind.STRUCT_DECL
assert tu_nodes[1].spelling == 's1'
OpenPOWER on IntegriCloud