diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-03 23:18:17 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-03 23:18:17 +0000 |
| commit | 37d065680b292e871a2053c582832232082648d2 (patch) | |
| tree | 3bddcf0a7348888673cdf767f0735d088724bae9 /clang/test | |
| parent | 92291f6ad0db3e7f65cc57e4ecef42704f1c5193 (diff) | |
| download | bcm5719-llvm-37d065680b292e871a2053c582832232082648d2.tar.gz bcm5719-llvm-37d065680b292e871a2053c582832232082648d2.zip | |
Patch to instantiate destructors used to destruct
base and data members when they are needed.
llvm-svn: 80967
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenCXX/constructor-template.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/constructor-template.cpp b/clang/test/CodeGenCXX/constructor-template.cpp index 5fc6c2dfabb..84e77d43da3 100644 --- a/clang/test/CodeGenCXX/constructor-template.cpp +++ b/clang/test/CodeGenCXX/constructor-template.cpp @@ -22,12 +22,14 @@ struct B { template <typename T> class List { public: List(){ } // List<BinomialNode<int>*>::List() remains undefined. + ~List() {} }; template <typename T> class Node { int i; public: Node(){ } // Node<BinomialNode<int>*>::Node() remains undefined. + ~Node() {} }; @@ -40,10 +42,15 @@ public: int main() { B<int> *n = new B<int>(4); BinomialNode<int> *node = new BinomialNode<int>(1); + delete node; } +// CHECK-LP64: __ZN4ListIP12BinomialNodeIiEED1Ev: +// CHECK-LP64: __ZN4ListIP12BinomialNodeIiEED2Ev: // CHECK-LP64: __ZN4NodeIP12BinomialNodeIiEEC1Ev: // CHECK-LP64: __ZN4ListIP12BinomialNodeIiEEC1Ev: +// CHECK-LP32: __ZN4ListIP12BinomialNodeIiEED1Ev: +// CHECK-LP32: __ZN4ListIP12BinomialNodeIiEED2Ev: // CHECK-LP32: __ZN4NodeIP12BinomialNodeIiEEC1Ev: // CHECK-LP32: __ZN4ListIP12BinomialNodeIiEEC1Ev: |

