summaryrefslogtreecommitdiffstats
path: root/bindings/python/tests
diff options
context:
space:
mode:
authorGregory Szorc <gregory.szorc@gmail.com>2012-03-10 22:23:27 +0000
committerGregory Szorc <gregory.szorc@gmail.com>2012-03-10 22:23:27 +0000
commit5cc6787b1ce76fc3b6e5fc6c2729f0dbfaf6c749 (patch)
tree8074b9e527c14ba386fa47117ecf4526c7dcf8db /bindings/python/tests
parent5b31d55ab3a72c026a0781b6dcf9bc1dd462e8b9 (diff)
[clang.py] Implement Cursor.objc_type_encoding
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/tests')
-rw-r--r--bindings/python/tests/cindex/test_cursor.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/python/tests/cindex/test_cursor.py b/bindings/python/tests/cindex/test_cursor.py
index bbe2c1d7e5..9f02bb2a76 100644
--- a/bindings/python/tests/cindex/test_cursor.py
+++ b/bindings/python/tests/cindex/test_cursor.py
@@ -83,3 +83,10 @@ def test_enum_type():
assert enum.kind == CursorKind.ENUM_DECL
enum_type = enum.enum_type
assert enum_type.kind == TypeKind.UINT
+
+def test_objc_type_encoding():
+ tu = get_tu('int i;', lang='objc')
+ i = get_cursor(tu, 'i')
+
+ assert i is not None
+ assert i.objc_type_encoding == 'i'