1 // RUN: %clang_analyze_cc1 -analyzer-checker=webkit.NoUncountedMemberChecker -verify %s
3 #include "mock-types.h"
10 template<typename T
> class RefCounted
: public RefCountedBase
{
12 virtual ~RefCounted() { }
13 void deref() const { }
16 class TreeNode
: public RefCounted
<TreeNode
> {
18 void setParent(TreeNode
& parent
) { m_parent
= &parent
; }
22 // expected-warning@-1{{Member variable 'm_parent' in 'TreeNode' is a raw pointer to ref-countable type 'TreeNode'}}