From a3fa5c7f1b5e2ba4d6ec033dc0e2376326b05824 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Fri, 15 Jan 2010 15:39:40 +0000 Subject: Update clang to r93512. --- test/CodeGenCXX/vtable-key-function.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/CodeGenCXX/vtable-key-function.cpp') diff --git a/test/CodeGenCXX/vtable-key-function.cpp b/test/CodeGenCXX/vtable-key-function.cpp index 90e8ea6..97a546f 100644 --- a/test/CodeGenCXX/vtable-key-function.cpp +++ b/test/CodeGenCXX/vtable-key-function.cpp @@ -13,3 +13,21 @@ struct A { A::A() { } A::A(int) { } } + +// Make sure that we don't assert when building the vtable for a class +// template specialization or explicit instantiation with a key +// function. +template +struct Base { + virtual ~Base(); +}; + +template +struct Derived : public Base { }; + +template<> +struct Derived : public Base { + virtual void anchor(); +}; + +void Derived::anchor() { } -- cgit v1.1