aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-18 04:29:09 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-18 04:29:09 +0000
commit7482e247163978792654ca1a99913e19dd507e0a (patch)
tree64201fb312d71c5100019be429db6019c61b7329 /test/CodeGenCXX/mangle.cpp
parentb251e9346e4ff0f995aa33c26f691406a70f0ed1 (diff)
More mangling goodness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index 2d2d4b5866..dd926b7251 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -95,9 +95,8 @@ template<typename T> void ft2(T t, void (*)(T), void (*)(T)) { }
template<typename T, typename U = S1<T> > struct S4 { };
template<typename T> void ft3(S4<T>*) { }
-extern "C++" {
- // CHECK: @_Z1hv
- void h() { }
+namespace NS {
+ template<typename T> void ft1(T) { }
}
void g() {
@@ -109,4 +108,13 @@ void g() {
// CHECK: @_Z3ft3IiEvP2S4IT_2S1IS1_EE
ft3<int>(0);
+
+ // CHECK: @_ZN2NS3ft1IiEEvT_
+ NS::ft1<int>(1);
+}
+
+extern "C++" {
+ // CHECK: @_Z1hv
+ void h() { }
}
+