aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-subst-std.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-07 19:56:42 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-07 19:56:42 +0000
commit91f8860de5f4280607e74c9d653751cd3f891ca7 (patch)
tree8cd6014d61868cbce15a3cea931dd7a83d7975be /test/CodeGenCXX/mangle-subst-std.cpp
parentbc773a0bd20231c405476d15c5e8bfb3eb365293 (diff)
Mangle basic_ostream and basic_iostream specializations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-subst-std.cpp')
-rw-r--r--test/CodeGenCXX/mangle-subst-std.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-subst-std.cpp b/test/CodeGenCXX/mangle-subst-std.cpp
index 8a410b8b04..a2994c4abf 100644
--- a/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/test/CodeGenCXX/mangle-subst-std.cpp
@@ -32,12 +32,20 @@ namespace std {
void f(std::string) { }
namespace std {
+ template<typename, typename> struct basic_istream { };
template<typename, typename> struct basic_ostream { };
+ template<typename, typename> struct basic_iostream { };
}
+// CHECK: _Z1fSi
+void f(std::basic_istream<char, std::char_traits<char> >) { }
+
// CHECK: _Z1fSo
void f(std::basic_ostream<char, std::char_traits<char> >) { }
+// CHECK: _Z1fSd
+void f(std::basic_iostream<char, std::char_traits<char> >) { }
+
extern "C++" {
namespace std
{