[cfe-commits] r90541 - /cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp

Eli Friedman eli.friedman at gmail.com
Thu Dec 3 20:30:55 PST 2009


Author: efriedma
Date: Thu Dec  3 22:30:55 2009
New Revision: 90541

URL: http://llvm.org/viewvc/llvm-project?rev=90541&view=rev
Log:
Test for non-canonical decl and vtables.


Added:
    cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp

Added: cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp?rev=90541&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/virt-canonical-decl.cpp Thu Dec  3 22:30:55 2009
@@ -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()
+{
+}





More information about the cfe-commits mailing list