Peter pointed out that C::f() is not a key function. C's key function
is actually C::~C().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182866
91177308-0d34-0410-b5e6-
96231b3b80d8
virtual void f();
};
void C::f() {}
-// The usual Itanium-style key method does not cause vtable emission.
// NO-VTABLE-NOT: @"\01??_7C@@6B@"
struct D {
};
void G::j() {}
// NO-VTABLE-NOT: @"\01??_7G@@6B@"
+
+// Test that the usual Itanium-style key method does not emit a vtable.
+struct H {
+ virtual void f();
+};
+void H::f() {}
+// NO-VTABLE-NOT: @"\01??_7H@@6B@"