X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fexplicit54.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fexplicit54.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=9d185be24ce86ffc7dba628a1dc81faa38dc720f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit54.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit54.C deleted file mode 100644 index 9d185be2..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/explicit54.C +++ /dev/null @@ -1,35 +0,0 @@ -extern "C" void abort (); - -template inline int fact2 (); - -template inline int fact () -{ - return a * fact2 (); -} - -template <> inline int fact<1> () -{ - return 1; -} - -template inline int fact2 () -{ - return a*fact(); -} - -template <> inline int fact2<1> () -{ - return 1; -} - -int main() -{ - if (fact<3> () != 6 || fact<1> () != 1 - || fact<3> () != 6 || fact<1> () != 1 || fact<1+0> () != 1) - abort (); - if (fact2<3> () != 6 || fact2<1> () != 1 - || fact2<3> () != 6 || fact2<1> () != 1 || fact2<1+0> () != 1) - abort (); - if (fact2<4> () != 24 || fact<4> () != 24) - abort (); -}