From 4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 13 Jul 2010 17:21:42 +0000 Subject: Update clang to r108243. --- test/CodeGenCXX/thunks.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/CodeGenCXX/thunks.cpp') diff --git a/test/CodeGenCXX/thunks.cpp b/test/CodeGenCXX/thunks.cpp index 79ca709f470d..1de576128a11 100644 --- a/test/CodeGenCXX/thunks.cpp +++ b/test/CodeGenCXX/thunks.cpp @@ -234,6 +234,18 @@ namespace Test8 { void C::bar(NonPOD var) {} } +// PR7241: Emitting thunks for a method shouldn't require the vtable for +// that class to be emitted. +namespace Test9 { + struct A { virtual ~A() { } }; + struct B : A { virtual void test() const {} }; + struct C : B { C(); ~C(); }; + struct D : C { D() {} }; + void test() { + D d; + } +} + /**** The following has to go at the end of the file ****/ // This is from Test5: -- cgit v1.3