aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-01 00:58:25 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-01 00:58:25 +0000
commit984e06874685396ca2cb51f0008cfff7c9b3d9c6 (patch)
treec1c898a956aa1cbe24100a5b42e1cb4e8fe50f69 /test/CodeGenCXX/mangle.cpp
parent2fc47b54ee2ef1419c0af4c80d52260b34056b85 (diff)
Implement code generation of namespaces and add mangling tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index 7acb31cc69..0a76dddaff 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -26,3 +26,9 @@ void f(y) { }
// RUN: grep _Z1fv %t | count 1
void f() { }
+
+// RUN: grep _ZN1N1fEv %t | count 1
+namespace N { void f() { } }
+
+// RUN: grep _ZN1N1N1fEv %t | count 1
+namespace N { namespace N { void f() { } } }