brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · 176238f Raw
31 lines · cpp
1// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s2// expected-no-diagnostics3 4#include "mock-types.h"5 6class Base {7public:8    virtual ~Base();9    void ref() const;10    void deref() const;11};12 13class Event : public Base {14protected:15    explicit Event();16};17 18class SubEvent : public Event {19public:20    static Ref<SubEvent> create();21private:22    SubEvent() = default;23};24 25void someFunction(Base&);26 27static void test()28{29    someFunction(SubEvent::create());30}31