From: Douglas Gregor Date: Wed, 29 Jul 2009 16:13:25 +0000 (+0000) Subject: Test redefinition of class template partial specializations X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f61ef4fb9f69892badf0be98e7f03e2497299001;p=clang Test redefinition of class template partial specializations git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77463 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/temp_class_spec.cpp b/test/SemaTemplate/temp_class_spec.cpp index 9087b012b3..26a6a1dc38 100644 --- a/test/SemaTemplate/temp_class_spec.cpp +++ b/test/SemaTemplate/temp_class_spec.cpp @@ -47,7 +47,7 @@ int is_const1[is_const::value? 1 : -1]; int is_const2[is_const::value? 1 : -1]; int is_const3[is_const::value? 1 : -1]; int is_const4[is_const::value? 1 : -1]; -int is_const4[is_const::value? -1 : 1]; +int is_const5[is_const::value? -1 : 1]; template struct is_volatile { @@ -324,3 +324,10 @@ template class A { }; //#2 template class A { }; //#3 template class A { }; //#4 template class A { }; //#5 + +// Redeclaration of class template partial specializations +template class A0; + +template class A0 { }; // expected-note{{here}} +template class A0; +template class A0 { }; // expected-error{{redef}}