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

References

unittests/ADT/PointerSumTypeTest.cpp
   35   EXPECT_FALSE(n);
   42   EXPECT_EQ((Kinds)0, n.getTag());
   70   EXPECT_EQ(nullptr, n.get<Float>());
   71   EXPECT_EQ(nullptr, n.get<Int1>());
   72   EXPECT_EQ(nullptr, n.get<Int2>());
   98   n = SumType::create<Int1>(&i2);
   99   EXPECT_TRUE(n);
  100   EXPECT_EQ(nullptr, n.get<Float>());
  101   EXPECT_EQ(&i2, n.get<Int1>());
  102   EXPECT_EQ(nullptr, n.get<Int2>());
  104   n = SumType::create<Float>(nullptr);
  105   EXPECT_FALSE(n);
  106   EXPECT_EQ(nullptr, n.get<Float>());
  107   EXPECT_EQ(nullptr, n.get<Int1>());
  108   EXPECT_EQ(nullptr, n.get<Int2>());