Lines Matching refs:p2
48 CopyablePtr<X> p2(p1); in TEST() local
50 EXPECT_NE(p2.get(), nullptr); in TEST()
51 EXPECT_NE(p1.get(), p2.get()); in TEST()
53 p2->val = 2; in TEST()
55 EXPECT_EQ(p2->val, 2); in TEST()
62 p3 = p2; in TEST()
70 EXPECT_EQ(p2->val, 2); in TEST()
77 CopyablePtr<X> p2(std::move(p1)); in TEST() local
78 EXPECT_EQ(p2->val, 1); in TEST()
96 CopyablePtr<X> p2; in TEST() local
97 p2->val = 2; in TEST()
102 EXPECT_NE(p1.get(), p2.get()); in TEST()
105 EXPECT_FALSE(p1 == p2); in TEST()
107 EXPECT_FALSE(p2 == p3); in TEST()
109 EXPECT_FALSE(p1 != p2); // The operator!= is special, see above. in TEST()
110 EXPECT_TRUE(p2 != p3); in TEST()
113 EXPECT_TRUE(p1 != p2); in TEST()
114 EXPECT_FALSE(p1 == p2); in TEST()