aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/Checkers/WebKit/ref-ptr-accessor.cpp
blob: 560dcfd4bdb094a8d7db05b79a823f364ca02339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
// expected-no-diagnostics

#include "mock-types.h"

void someFunction(RefCountable*);

void testFunction()
{
    Ref item = RefCountable::create();
    someFunction(item.ptr());
}