aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-subst-std.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-06-02 15:58:27 +0000
committerAnders Carlsson <andersca@mac.com>2010-06-02 15:58:27 +0000
commitc820f90ff1a2c6e3e8b859355541c32f31d3cb8e (patch)
tree2f80a0e43e3a007d5bf3d28506c3710766630790 /test/CodeGenCXX/mangle-subst-std.cpp
parent8ee59398df0e6df2e32109d078235a33b005840c (diff)
Don't substitute 'St' for 'std' when the namespace is nested inside another namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-subst-std.cpp')
-rw-r--r--test/CodeGenCXX/mangle-subst-std.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-subst-std.cpp b/test/CodeGenCXX/mangle-subst-std.cpp
index 4c15eaac88..9c1e978294 100644
--- a/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/test/CodeGenCXX/mangle-subst-std.cpp
@@ -99,3 +99,13 @@ void f(not_string) { }
void create_streams() {
std::basic_iostream<char> bio(17);
}
+
+// Make sure we don't mangle 'std' as 'St' here.
+namespace N {
+ namespace std {
+ struct A { void f(); };
+
+ // CHECK: define void @_ZN1N3std1A1fEv
+ void A::f() { }
+ }
+}