1 // RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
2 // expected-no-diagnostics
4 #include "mock-types.h"
16 void someFunction(RefCounted
&);
19 RefPtr
<Object
> object();
20 RefPtr
<RefCounted
> protectedTargetObject();
23 if (RefPtr obj
= object())
24 obj
->someFunction(*protectedTargetObject());