X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ns%2Ftemplate13.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ns%2Ftemplate13.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=722666ffe4ab7b3624e5783bbe49b5f0ec50a32a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template13.C b/gcc/testsuite/g++.old-deja/g++.ns/template13.C deleted file mode 100644 index 722666ff..00000000 --- a/gcc/testsuite/g++.old-deja/g++.ns/template13.C +++ /dev/null @@ -1,23 +0,0 @@ -// Build don't link: -// Templates defined outside must be declared inside -// crash test - XFAIL *-*-* -namespace bar -{ - template - void foo(); // trick it to provide some prior declaration - templateclass X; // ERROR - previous declaration -} - -template -T const -bar::foo(T const &a) -{ // ERROR - not declared in bar - XFAIL *-*-* - return a; -} - -template<> void bar::foo() -{ // ERROR - not declared in bar - XFAIL *-*-* -} - -template -class bar::X{}; // ERROR - does not match declaration