]> granicus.if.org Git - clang/commitdiff
[ms-cxxabi] Fix r182865 to have an actual Itanium-style key function
authorReid Kleckner <reid@kleckner.net>
Wed, 29 May 2013 16:51:17 +0000 (16:51 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 29 May 2013 16:51:17 +0000 (16:51 +0000)
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

test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp

index 64b1f43b8c3c89a3d33466192ca8426b34bc3557..04b5fc1205fdf4a466c1dfd5e01722c12b584e3a 100644 (file)
@@ -48,7 +48,6 @@ struct C {
   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 {
@@ -115,3 +114,10 @@ struct G : E {
 };
 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@"