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)
llvm-svn: 76774

clang/test/SemaTemplate/temp_class_spec.cpp

index da34350..db154f6 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 {