[LLVM][NVPTX] Add support for griddepcontrol instruction (#123511)
[llvm-project.git] / clang / test / Analysis / Checkers / WebKit / call-args-protected-return-value.cpp
blob6a8b7464845a26b16467606ec5e18192738c68f4
1 // RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
2 // expected-no-diagnostics
4 #include "mock-types.h"
6 class RefCounted {
7 public:
8 void ref() const;
9 void deref() const;
12 class Object {
13 public:
14 void ref() const;
15 void deref() const;
16 void someFunction(RefCounted&);
19 RefPtr<Object> object();
20 RefPtr<RefCounted> protectedTargetObject();
22 void testFunction() {
23 if (RefPtr obj = object())
24 obj->someFunction(*protectedTargetObject());