Home
last modified time | relevance | path

Searched refs:SimpleRefCounted (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DIntrusiveRefCntPtrTest.cpp16 struct SimpleRefCounted : public RefCountedBase<SimpleRefCounted> { struct
17 SimpleRefCounted() { ++NumInstances; } in SimpleRefCounted() argument
18 SimpleRefCounted(const SimpleRefCounted &) : RefCountedBase() { in SimpleRefCounted() argument
21 ~SimpleRefCounted() { --NumInstances; } in ~SimpleRefCounted() argument
25 int SimpleRefCounted::NumInstances = 0;
29 EXPECT_EQ(0, SimpleRefCounted::NumInstances); in TEST()
31 SimpleRefCounted *S1 = new SimpleRefCounted; in TEST()
32 IntrusiveRefCntPtr<SimpleRefCounted> R1 = S1; in TEST()
33 SimpleRefCounted *S2 = new SimpleRefCounted(*S1); in TEST()
34 IntrusiveRefCntPtr<SimpleRefCounted> R2 = S2; in TEST()
[all …]
/external/llvm/unittests/ADT/
DIntrusiveRefCntPtrTest.cpp29 struct SimpleRefCounted : public RefCountedBase<SimpleRefCounted> {}; struct
33 SimpleRefCounted *S1 = new SimpleRefCounted; in TEST()
34 IntrusiveRefCntPtr<SimpleRefCounted> R1 = S1; in TEST()
35 SimpleRefCounted *S2 = new SimpleRefCounted(*S1); in TEST()
36 IntrusiveRefCntPtr<SimpleRefCounted> R2 = S2; in TEST()