diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-10 22:23:27 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-10 22:23:27 +0000 |
commit | a8b30c5b61069cc576ca87c719cb5817d79f946a (patch) | |
tree | d1df00821b05e4fbb7e83399950807dd1136d81c /clang/bindings/python/tests | |
parent | b4489162b6bb670825f9531286b2c231fb0d98aa (diff) | |
download | bcm5719-llvm-a8b30c5b61069cc576ca87c719cb5817d79f946a.tar.gz bcm5719-llvm-a8b30c5b61069cc576ca87c719cb5817d79f946a.zip |
[clang.py] Implement Cursor.objc_type_encoding
llvm-svn: 152513
Diffstat (limited to 'clang/bindings/python/tests')
-rw-r--r-- | clang/bindings/python/tests/cindex/test_cursor.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py index bbe2c1d7e5e..9f02bb2a768 100644 --- a/clang/bindings/python/tests/cindex/test_cursor.py +++ b/clang/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' |