summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests/cindex/test_cursor.py
diff options
context:
space:
mode:
authorGregory Szorc <gregory.szorc@gmail.com>2012-05-14 03:53:29 +0000
committerGregory Szorc <gregory.szorc@gmail.com>2012-05-14 03:53:29 +0000
commit71efa09fa7e4914689bba401453bc98a355393bd (patch)
treeddf368d62bf04ac0e6e3047de4eb0b286d20a95b /clang/bindings/python/tests/cindex/test_cursor.py
parent0b9cfa2b06b1a3bcb52b7d2f4408e64a79d5aada (diff)
downloadbcm5719-llvm-71efa09fa7e4914689bba401453bc98a355393bd.tar.gz
bcm5719-llvm-71efa09fa7e4914689bba401453bc98a355393bd.zip
[clang.py] Implement Cursor.result_type
llvm-svn: 156752
Diffstat (limited to 'clang/bindings/python/tests/cindex/test_cursor.py')
-rw-r--r--clang/bindings/python/tests/cindex/test_cursor.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py
index eda74f0e245..206d9c85210 100644
--- a/clang/bindings/python/tests/cindex/test_cursor.py
+++ b/clang/bindings/python/tests/cindex/test_cursor.py
@@ -172,3 +172,11 @@ def test_annotation_attribute():
break
else:
assert False, "Couldn't find annotation"
+
+def test_result_type():
+ tu = get_tu('int foo();')
+ foo = get_cursor(tu, 'foo')
+
+ assert foo is not None
+ t = foo.result_type
+ assert t.kind == TypeKind.INT
OpenPOWER on IntegriCloud