summaryrefslogtreecommitdiffstats
path: root/clang/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
commit237f349073409f698e242cb80412f1feeec223d4 (patch)
tree451f9324ac8cf2f059ee8f096007451f5e5960c7 /clang/test/CodeGenCXX/mangle.cpp
parentf16f90b4fd1b2169c7b3f62a1017f978192f6476 (diff)
downloadbcm5719-llvm-237f349073409f698e242cb80412f1feeec223d4.tar.gz
bcm5719-llvm-237f349073409f698e242cb80412f1feeec223d4.zip
Implement code generation of namespaces and add mangling tests.
llvm-svn: 68170
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index 7acb31cc69e..0a76dddaff9 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/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() { } } }
OpenPOWER on IntegriCloud