1 // RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
2 // expected-no-diagnostics
5 #import "mock-system-header.h"
6 #import "../../Inputs/system-header-simulator-for-objc-dealloc.h"
8 @interface Foo : NSObject
10 @property (nonatomic, readonly) RefPtr<RefCountable> countable;
13 - (RefPtr<RefCountable>)_protectedRefCountable;
19 self._protectedRefCountable->method();
22 - (RefPtr<RefCountable>)_protectedRefCountable {
28 class RefCountedObject {
32 Ref<RefCountedObject> copy() const;
35 @interface WrapperObj : NSObject
37 - (Ref<RefCountedObject>)_protectedWebExtensionControllerConfiguration;
41 static void foo(WrapperObj *configuration) {
42 configuration._protectedWebExtensionControllerConfiguration->copy();