blob: 176238f31bd2e40f8c6f847a376b880e562c5c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s
// expected-no-diagnostics
#include "mock-types.h"
class Base {
public:
virtual ~Base();
void ref() const;
void deref() const;
};
class Event : public Base {
protected:
explicit Event();
};
class SubEvent : public Event {
public:
static Ref<SubEvent> create();
private:
SubEvent() = default;
};
void someFunction(Base&);
static void test()
{
someFunction(SubEvent::create());
}
|