| 1 |
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
#include "mock-types.h" |
| 5 |
|
| 6 |
void someFunction(RefCountable*); |
| 7 |
|
| 8 |
void testFunction() |
| 9 |
{ |
| 10 |
Ref item = RefCountable::create(); |
| 11 |
someFunction(item.ptr()); |
| 12 |
} |