From a8b30c5b61069cc576ca87c719cb5817d79f946a Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sat, 10 Mar 2012 22:23:27 +0000 Subject: [clang.py] Implement Cursor.objc_type_encoding llvm-svn: 152513 --- clang/bindings/python/tests/cindex/test_cursor.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/bindings/python/tests/cindex/test_cursor.py') 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' -- cgit v1.2.3