summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/deduction.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-19 00:20:19 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-19 00:20:19 +0000
commite4f26e54d81fb1987333132fe34cd927e62c803c (patch)
tree1d4d515e012586f11249c20ab04e7576408729de /test/SemaTemplate/deduction.cpp
parent8538e8d43a3a9bd439c987c0de37bcbf035dd391 (diff)
downloadclang-e4f26e54d81fb1987333132fe34cd927e62c803c.tar.gz
clang-e4f26e54d81fb1987333132fe34cd927e62c803c.tar.bz2
clang-e4f26e54d81fb1987333132fe34cd927e62c803c.tar.xz
When deducing the element type of an array, ignore qualifiers if
the context allows us to ignore qualifiers on the array type itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/deduction.cpp')
-rw-r--r--test/SemaTemplate/deduction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaTemplate/deduction.cpp b/test/SemaTemplate/deduction.cpp
index 0dfb8d6b2c..c4c668898f 100644
--- a/test/SemaTemplate/deduction.cpp
+++ b/test/SemaTemplate/deduction.cpp
@@ -113,3 +113,11 @@ namespace test0 {
make(char_maker); // expected-error {{no matching function for call to 'make'}}
}
}
+
+namespace test1 {
+ template<typename T> void foo(const T a[3][3]);
+ void test() {
+ int a[3][3];
+ foo(a);
+ }
+}