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

References

unittests/ADT/PointerUnionTest.cpp
  128   EXPECT_TRUE(a.is<Aligned<0>*>());
  129   EXPECT_FALSE(a.is<Aligned<1>*>());
  130   EXPECT_FALSE(a.is<Aligned<2>*>());
  131   EXPECT_FALSE(a.is<Aligned<3>*>());
  132   EXPECT_FALSE(a.is<Aligned<4>*>());
  133   EXPECT_FALSE(a.is<Aligned<5>*>());
  134   EXPECT_FALSE(a.is<Aligned<6>*>());
  135   EXPECT_FALSE(a.is<Aligned<7>*>());
  136   EXPECT_EQ(a.dyn_cast<Aligned<0>*>(), &a0);
  137   EXPECT_EQ(*a.getAddrOfPtr1(), &a0);
  139   a = &a7;
  140   EXPECT_FALSE(a.is<Aligned<0>*>());
  141   EXPECT_FALSE(a.is<Aligned<1>*>());
  142   EXPECT_FALSE(a.is<Aligned<2>*>());
  143   EXPECT_FALSE(a.is<Aligned<3>*>());
  144   EXPECT_FALSE(a.is<Aligned<4>*>());
  145   EXPECT_FALSE(a.is<Aligned<5>*>());
  146   EXPECT_FALSE(a.is<Aligned<6>*>());
  147   EXPECT_TRUE(a.is<Aligned<7>*>());
  148   EXPECT_EQ(a.dyn_cast<Aligned<7>*>(), &a7);
  150   EXPECT_TRUE(a == PU8(&a7));
  151   EXPECT_TRUE(a != PU8(&a0));