summaryrefslogtreecommitdiffstats
path: root/clang/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
commitb4d2cdbb46edbaeef6f34971db937c0f8644afb7 (patch)
tree564037725380ca57abcb55dff9cd8354393ed1d8 /clang/test/CodeGenCXX/mangle-subst-std.cpp
parent6d3bc0898ee4b0aaaf81db4f94a14490954de0e7 (diff)
downloadbcm5719-llvm-b4d2cdbb46edbaeef6f34971db937c0f8644afb7.tar.gz
bcm5719-llvm-b4d2cdbb46edbaeef6f34971db937c0f8644afb7.zip
Don't substitute 'St' for 'std' when the namespace is nested inside another namespace.
llvm-svn: 105330
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-subst-std.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle-subst-std.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-subst-std.cpp b/clang/test/CodeGenCXX/mangle-subst-std.cpp
index 4c15eaac883..9c1e978294c 100644
--- a/clang/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/clang/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() { }
+ }
+}
OpenPOWER on IntegriCloud