summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-16 23:53:19 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-16 23:53:19 +0000
commitb3e533d9d0b1e53687407ec9d26b0d1c80d96375 (patch)
tree5429f884c2edb7ad2000b7476cd0b0e89ac91e55 /clang
parent1ff8299c678b41f1a6afa0bd3e4346dac2d719e1 (diff)
downloadbcm5719-llvm-b3e533d9d0b1e53687407ec9d26b0d1c80d96375.tar.gz
bcm5719-llvm-b3e533d9d0b1e53687407ec9d26b0d1c80d96375.zip
Add a simple const mangling test.
llvm-svn: 82096
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenCXX/mangle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp
index ef36a8b23cf..1028defefae 100644
--- a/clang/test/CodeGenCXX/mangle.cpp
+++ b/clang/test/CodeGenCXX/mangle.cpp
@@ -83,5 +83,10 @@ struct S;
// RUN: grep "_Z1fM1SKFvvE" %t | count 1 &&
void f(void (S::*)() const) {}
-// RUN: grep "_Z1fM1SFvvE" %t | count 1
+// RUN: grep "_Z1fM1SFvvE" %t | count 1 &&
void f(void (S::*)()) {}
+
+// RUN: grep "_Z1fi" %t | count 1 &&
+void f(const int) { }
+
+// RUN: true
OpenPOWER on IntegriCloud