X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate25.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate25.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=9704412263e3ac25334a1f10c17317e9072f815b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template25.C b/gcc/testsuite/g++.old-deja/g++.jason/template25.C deleted file mode 100644 index 97044122..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/template25.C +++ /dev/null @@ -1,48 +0,0 @@ -// PRMS Id: 6393 -// Bug: g++ is too lax in considering UPTs to be the same. - -template -class Bar -{ -public: - R do_bar (T arg); -}; - - -template -class Foo -{ - T i; - -public: - void do_foo () {} - void do_foo (T const & t) {} - void do_foo (Bar const & bar); // {} Put the body here and it works - void do_foo (Bar const & bar); // {} Put the body here and it works -}; - -// These definitions don't work - -template -inline void Foo:: -do_foo (Bar const & bar) -{} - -template -inline void Foo:: -do_foo (Bar const & bar) -{} - - -int main () -{ int i; - Bar bar1; - Bar bar2; - Foo foo; - foo.do_foo(); - foo.do_foo(i); - foo.do_foo(bar1); - foo.do_foo(bar2); - - return 0; -}