Lines Matching refs:Virtual
3 // with virtual bases.
20 struct Virtual : virtual B1 {
31 virtual void myVirtual();
36 // This class uses the virtual inheritance model, yet its vbptr offset is not 0.
39 struct NonZeroVBPtr : POD, Virtual {
50 int Virtual ::*v_d_memptr;
65 void (Virtual ::*v_f_memptr)();
71 struct Unspecified : Multiple, Virtual {
80 void (Virtual ::*v_f_mp)() = &Virtual::foo;
87 // CHECK: global { i8*, i32, i32 } { i8* bitcast ({{.*}} @"\01?foo@Virtual@@QAEXXZ" to i8*), i32 0, i32 0 }, align 4
118 virtual void isPolymorphic();
134 struct UnspecWithVBPtr : B1, virtual B2 {
139 // Test emitting non-virtual member pointers in a non-constexpr setting.
143 void (Virtual ::*v_f_memptr)() = &Virtual::foo;
156 // CHECK: { i8* bitcast (void (%{{.*}}*)* @"\01?foo@Virtual@@QAEXXZ" to i8*), i32 0, i32 0 },
238 int loadDataMemberPointerVirtual(Virtual *o, int Virtual::*memptr) {
316 void callMemberPointerVirtualBase(Virtual *o, void (Virtual::*memptr)()) {
318 // This shares a lot with virtual data member pointers.
472 struct C : virtual A { int c; };
508 virtual void hasVfPtr();