aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-17 17:41:20 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-17 17:41:20 +0000
commit0e650017acdbbeb0c590e77bbea88c200ea1caef (patch)
tree7b3ba4430255a7c9c6a249097bba107cee132e9e /test/CodeGenCXX/mangle.cpp
parent1e64a9531bf6e9d99ad3271b3a735ef702689b06 (diff)
Add support for converting member pointer types to LLVM types. Also mangle pointer to member functions correctly and add tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index 86a72011da..ef36a8b23c 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -75,5 +75,13 @@ void f(S3<true>) {}
// RUN: grep "_Z1f2S3ILb0EE" %t | count 1 &&
void f(S3<false>) {}
-// RUN: grep "_Z2f22S3ILb1EE" %t | count 1
+// RUN: grep "_Z2f22S3ILb1EE" %t | count 1 &&
void f2(S3<100>) {}
+
+struct S;
+
+// RUN: grep "_Z1fM1SKFvvE" %t | count 1 &&
+void f(void (S::*)() const) {}
+
+// RUN: grep "_Z1fM1SFvvE" %t | count 1
+void f(void (S::*)()) {}