Skip to content

Commit 484b385

Browse files
committed
Add test for is_function_inlined
1 parent 6edd33c commit 484b385

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/bindings/python/tests/cindex/test_cursor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,11 @@ def test_storage_class(self):
784784
cursor = get_cursor(tu, "reg")
785785
self.assertEqual(cursor.storage_class, StorageClass.REGISTER)
786786

787+
def test_function_inlined(self):
788+
tu = get_tu("inline void foo(void);")
789+
cursor = get_cursor(tu, "foo")
790+
self.assertEqual(cursor.is_function_inlined(), True)
791+
787792
def test_availability(self):
788793
tu = get_tu("class A { A(A const&) = delete; };", lang="cpp")
789794

0 commit comments

Comments
 (0)