X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate27.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate27.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=be90aca8d75e97173672a2f161cedd07fb88500b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template27.C b/gcc/testsuite/g++.old-deja/g++.jason/template27.C deleted file mode 100644 index be90aca8..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/template27.C +++ /dev/null @@ -1,48 +0,0 @@ -// PRMS Id: 6826 -// Check that unnecessary templates are not instantiated. - -template -class Test -{ - public: - void doThiss(); - void doThat(); -}; - -template -void Test::doThiss() -{ - T x; - - x.thiss(); -} - -template -void Test::doThat() -{ - T x; - - x.that(); -} - -class A -{ - public: - void thiss() {}; -}; - -class B -{ - public: - void that() {}; -}; - -int main() -{ - Test a; - a.doThiss(); // a.doThat() is not well formed, but then - // it's not used so needn't be instantiated. - - Test b; - b.doThat(); // simillarly b.doThiss(); -}