X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fexplicit70.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fexplicit70.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=544faf7bdb2368b83b43cf8b9872e5327b432766;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit70.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit70.C deleted file mode 100644 index 544faf7b..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/explicit70.C +++ /dev/null @@ -1,43 +0,0 @@ -// Build don't link: - -template -void f(T) {} - -template -struct S { - static T t; -}; - -template -T S::t; - -template void f(int); -template void f(int); // ERROR - duplicate explicit instantiation -template int S::t; -template int S::t; // ERROR - duplicate explicit instantiation -template class S; -template class S; // ERROR - duplicate explicit instantiation - -extern template void f(double); // WARNING - extern not allowed -inline template class S; // WARNING - inline not allowed - -template -struct S {}; - -template class S; // OK - explicit instantiation of partial - // specialization - -template <> -struct S {}; - -template class S; // OK - explicit instantiation after - -template <> -void f(long double) {} - -template void f(long double); // OK - explicit instantiation after - -template -void g(T); - -template void g(int); // ERROR - no definition of g.