aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
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
commitcf85b933fef4ce827df83ef2d22c322ab2078aa5 (patch)
tree5da2110d87e3f1aadb745982fc2837970108ebe6 /test/CodeGenCXX/mangle.cpp
parentf08bf1f3263be401806ee0f83cba376c637da07a (diff)
Add a simple const mangling test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index ef36a8b23c..1028defefa 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/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