From: Eli Friedman Date: Fri, 4 Dec 2009 04:30:55 +0000 (+0000) Subject: Test for non-canonical decl and vtables. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84206757573bb9f3c91a48cebf800e3fb6c48301;p=clang Test for non-canonical decl and vtables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90541 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/virt-canonical-decl.cpp b/test/CodeGenCXX/virt-canonical-decl.cpp new file mode 100644 index 0000000000..c1a8c236af --- /dev/null +++ b/test/CodeGenCXX/virt-canonical-decl.cpp @@ -0,0 +1,19 @@ +// RUN: clang-cc %s -emit-llvm-only + +class Base { +public: + virtual ~Base(); +}; + +Base::~Base() +{ +} + +class Foo : public Base { +public: + virtual ~Foo(); +}; + +Foo::~Foo() +{ +}