summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/constructor-template.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-03 21:32:41 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-03 21:32:41 +0000
commit9d436205be3e4c05854530134be61b46b13136ff (patch)
tree3051e49b2fed607ea4ca044b5b1ae441766a6d8f /test/CodeGenCXX/constructor-template.cpp
parent80545ad0f9b8e52177a8c37bd140bae0ffbd0cc6 (diff)
downloadclang-9d436205be3e4c05854530134be61b46b13136ff.tar.gz
Mark constructors used in initialization of base(s) and fields
as referecned with location where they are used. Still need to look at destructor aspects of them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/constructor-template.cpp')
-rw-r--r--test/CodeGenCXX/constructor-template.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/CodeGenCXX/constructor-template.cpp b/test/CodeGenCXX/constructor-template.cpp
index 43abda435b..5fc6c2dfab 100644
--- a/test/CodeGenCXX/constructor-template.cpp
+++ b/test/CodeGenCXX/constructor-template.cpp
@@ -24,7 +24,14 @@ public:
List(){ } // List<BinomialNode<int>*>::List() remains undefined.
};
-template<typename T> class BinomialNode {
+template <typename T> class Node {
+ int i;
+public:
+ Node(){ } // Node<BinomialNode<int>*>::Node() remains undefined.
+};
+
+
+template<typename T> class BinomialNode : Node<BinomialNode<T>*> {
public:
BinomialNode(T value) {}
List<BinomialNode<T>*> nodes;
@@ -35,7 +42,8 @@ int main() {
BinomialNode<int> *node = new BinomialNode<int>(1);
}
+// CHECK-LP64: __ZN4NodeIP12BinomialNodeIiEEC1Ev:
// CHECK-LP64: __ZN4ListIP12BinomialNodeIiEEC1Ev:
-// CHECK-LP32:__ZN4ListIP12BinomialNodeIiEEC1Ev:
-
+// CHECK-LP32: __ZN4NodeIP12BinomialNodeIiEEC1Ev:
+// CHECK-LP32: __ZN4ListIP12BinomialNodeIiEEC1Ev: