aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-subst-std.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-08 17:20:26 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-08 17:20:26 +0000
commit8f8fd8ea7e5c5d04f95a3cf4af95aa93225bc2b4 (patch)
tree1ab72fe60107b84cf68c57304caa5579098b73dc /test/CodeGenCXX/mangle-subst-std.cpp
parent9916a047c55ea18845d706bf95e7517b646933d0 (diff)
Mangle std::basic_ostream<char, std::char_traits<char>> as So.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-subst-std.cpp')
-rw-r--r--test/CodeGenCXX/mangle-subst-std.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/CodeGenCXX/mangle-subst-std.cpp b/test/CodeGenCXX/mangle-subst-std.cpp
index 6a81c6d04b..fbce204512 100644
--- a/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/test/CodeGenCXX/mangle-subst-std.cpp
@@ -9,24 +9,31 @@ namespace std {
};
namespace std {
- template<typename T> struct allocator { };
+ template<typename> struct allocator { };
}
// CHECK: define void @_Z1fSaIcESaIiE
void f(std::allocator<char>, std::allocator<int>) { }
namespace std {
- template<typename T, typename U, typename V> struct basic_string { };
+ template<typename, typename, typename> struct basic_string { };
}
// CHECK: define void @_Z1fSbIcciE
void f(std::basic_string<char, char, int>) { }
namespace std {
- template<typename T> struct char_traits { };
+ template<typename> struct char_traits { };
typedef std::basic_string<char, std::char_traits<char>, std::allocator<char> > string;
}
// CHECK: _Z1fSs
void f(std::string) { }
+
+namespace std {
+ template<typename, typename> struct basic_ostream { };
+}
+
+// CHECK: _Z1fSo
+void f(std::basic_ostream<char, std::char_traits<char> >) { }