summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/member-templates.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-24 05:36:32 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-24 05:36:32 +0000
commitbd97548f35be77b8104a2a05ec321183ba554126 (patch)
treefa3e6b259bac0c10416c1562760cec5743225f08 /clang/test/CodeGenCXX/member-templates.cpp
parent65e6d131f00c6789126e9ee5bdb5c1433358f9db (diff)
downloadbcm5719-llvm-bd97548f35be77b8104a2a05ec321183ba554126.tar.gz
bcm5719-llvm-bd97548f35be77b8104a2a05ec321183ba554126.zip
When mangling a ctor/dtor we need to take into consideration whether it's a member template.
llvm-svn: 89741
Diffstat (limited to 'clang/test/CodeGenCXX/member-templates.cpp')
-rw-r--r--clang/test/CodeGenCXX/member-templates.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/member-templates.cpp b/clang/test/CodeGenCXX/member-templates.cpp
index c2df0120530..d85d6394f0e 100644
--- a/clang/test/CodeGenCXX/member-templates.cpp
+++ b/clang/test/CodeGenCXX/member-templates.cpp
@@ -7,3 +7,14 @@ struct A {
};
template<typename T> A::A(T) {}
+
+struct B {
+ template<typename T>
+ B(T);
+};
+
+template<typename T> B::B(T) {}
+
+// CHECK: define void @_ZN1BC1IiEET_(%struct.B* %this, i32)
+// CHECK: define void @_ZN1BC2IiEET_(%struct.B* %this, i32)
+template B::B(int);
OpenPOWER on IntegriCloud