]> granicus.if.org Git - clang/commitdiff
Slighty more testing for template argument deduction with array arguments
authorDouglas Gregor <dgregor@apple.com>
Wed, 22 Jul 2009 20:07:21 +0000 (20:07 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 22 Jul 2009 20:07:21 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76774 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/temp_class_spec.cpp

index da3435071792af70685af1491388d70d3cd1ccd1..db154f6076b4b0ec1b7ed9caa11150b3caf84051 100644 (file)
@@ -45,6 +45,9 @@ struct is_const<const T> {
 int is_const0[is_const<int>::value? -1 : 1];
 int is_const1[is_const<const int>::value? 1 : -1];
 int is_const2[is_const<const volatile int>::value? 1 : -1];
+int is_const3[is_const<const int [3]>::value? 1 : -1];
+int is_const4[is_const<const volatile int[3]>::value? 1 : -1];
+int is_const4[is_const<volatile int[3]>::value? -1 : 1];
 
 template<typename T>
 struct is_volatile {