commit | 9f853df0d3c25c646907a7b7ef22398370def00f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Nov 17 04:44:12 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Nov 17 04:44:12 2009 +0000 |
tree | 3a7ff5637f4a9d49e3b36cc8cd91ed793e343770 | |
parent | 0ed303c918915cbe2c611cddbfabd00404664831 [diff] [blame] |
Unify the way destructor epilogues are generated for synthesized and regular destructors. Also fix PR5529. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89034 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/destructors.cpp b/test/CodeGenCXX/destructors.cpp index 44d2b29..a196c13 100644 --- a/test/CodeGenCXX/destructors.cpp +++ b/test/CodeGenCXX/destructors.cpp
@@ -28,3 +28,17 @@ }; template<> A1<char>::~A1(); + +// PR5529 +namespace PR5529 { + struct A { + ~A(); + }; + + A::~A() { } + struct B : A { + virtual ~B(); + }; + + B::~B() {} +}