aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-26 20:05:40 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-26 20:05:40 +0000
commitb47f74818094fabd8f150fb4d6d0fa8a6c52cde1 (patch)
tree6fa9d440a2ebe4066b06fba6683755a4bc2240df /test/CodeGenCXX/mangle.cpp
parentfcab48b626b7ce43625958e857061d721a43a5bc (diff)
When mangling a qualified array type, push the qualifiers down to the
element type. Fixes rdar://problem/8913416. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index b5207a1712..ec496fe1f7 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -635,3 +635,15 @@ namespace test22 {
// CHECK: define void @_ZN6test221fEDn(
void f(decltype(nullptr)) { }
}
+
+// rdar://problem/8913416
+namespace test23 {
+ typedef void * const vpc;
+
+ // CHECK: define void @_ZN6test231fERA10_KPv(
+ void f(vpc (&)[10]) {}
+
+ typedef vpc vpca5[5];
+ void f(vpca5 volatile (&)[10]) {}
+ // CHECK: define void @_ZN6test231fERA10_A5_VKPv(
+}