Skip to content

Commit 6ee7567

Browse files
committed
Add a test case for Objective-C
1 parent 38660de commit 6ee7567

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ @interface WrapperObj : NSObject
5050
static void foo(WrapperObj *configuration) {
5151
configuration._protectedWebExtensionControllerConfiguration->copy();
5252
}
53+
54+
void log(RefCountable* obj) {
55+
os_log_msg(os_log_create("WebKit", "DOM"), OS_LOG_TYPE_INFO, "obj: %p next: %p", obj, obj->next());
56+
}

0 commit comments

Comments
 (0)