summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-05-29 16:51:17 +0000
committerReid Kleckner <reid@kleckner.net>2013-05-29 16:51:17 +0000
commite0acd7d50df8e51163729cecc6e02b3ff9615cd2 (patch)
treeedfa2162e212cc85c1daeca9303145fa34cdb4ea /clang/test
parent5d7f29815556b8a2bdeef1999cfbad2daad5b15f (diff)
downloadbcm5719-llvm-e0acd7d50df8e51163729cecc6e02b3ff9615cd2.tar.gz
bcm5719-llvm-e0acd7d50df8e51163729cecc6e02b3ff9615cd2.zip
[ms-cxxabi] Fix r182865 to have an actual Itanium-style key function
Peter pointed out that C::f() is not a key function. C's key function is actually C::~C(). llvm-svn: 182866
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp b/clang/test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
index 64b1f43b8c3..04b5fc1205f 100644
--- a/clang/test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
+++ b/clang/test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
@@ -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@"
OpenPOWER on IntegriCloud