reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/PointerSumTypeTest.cpp
   33   EXPECT_TRUE(b);
   40   EXPECT_EQ(Int1, b.getTag());
   49   EXPECT_FALSE(b.is<Float>());
   50   EXPECT_TRUE(b.is<Int1>());
   51   EXPECT_FALSE(b.is<Int2>());
   61   EXPECT_EQ(nullptr, b.get<Float>());
   62   EXPECT_EQ(&i1, b.get<Int1>());
   63   EXPECT_EQ(nullptr, b.get<Int2>());
   77   EXPECT_EQ(&i1, b.cast<Int1>());
   82   b = SumType::create<Int2>(&i2);
   83   EXPECT_EQ(nullptr, b.get<Float>());
   84   EXPECT_EQ(nullptr, b.get<Int1>());
   85   EXPECT_EQ(&i2, b.get<Int2>());
   87   b = SumType::create<Int2>(&i1);
   88   EXPECT_EQ(nullptr, b.get<Float>());
   89   EXPECT_EQ(nullptr, b.get<Int1>());
   90   EXPECT_EQ(&i1, b.get<Int2>());
   93   b = SumType::create<Float>(&Local);
   94   EXPECT_EQ(&Local, b.get<Float>());
   95   EXPECT_EQ(nullptr, b.get<Int1>());
   96   EXPECT_EQ(nullptr, b.get<Int2>());