summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle-subst-std.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-26 23:14:39 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-26 23:14:39 +0000
commit189d59cfc762d0f683b9253ddec2cf519ec85b65 (patch)
tree3fae2966cbf08b59edf48773253101c9cc4d296d /test/CodeGenCXX/mangle-subst-std.cpp
parent8c0315563f05a9face7209221325019e272075fb (diff)
Mangle ::std::basic_string as Sb.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-subst-std.cpp')
-rw-r--r--test/CodeGenCXX/mangle-subst-std.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle-subst-std.cpp b/test/CodeGenCXX/mangle-subst-std.cpp
index 0fd5eb1c9b..c35804e2d3 100644
--- a/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/test/CodeGenCXX/mangle-subst-std.cpp
@@ -9,10 +9,19 @@ namespace std {
};
namespace std {
- template<typename T> struct allocator { allocator(); };
+ template<typename T> struct allocator { };
}
// FIXME: typename is really not allowed here, but it's kept
// as a workaround for PR5061.
// CHECK: define void @_Z1fSaIcESaIiE
void f(typename std::allocator<char>, typename std::allocator<int>) { }
+
+namespace std {
+ template<typename T> struct basic_string { };
+}
+
+// FIXME: typename is really not allowed here, but it's kept
+// as a workaround for PR5061.
+// CHECK: define void @_Z1fSbIcESbIiE
+void f(typename std::basic_string<char>, typename std::basic_string<int>) { }