X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Finstantiate11.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Finstantiate11.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ae53224e9c846bb4bbba1bebf61828d3ff2b55f2;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate11.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate11.C deleted file mode 100644 index ae53224e..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/instantiate11.C +++ /dev/null @@ -1,65 +0,0 @@ -// Build don't link: -// Origin: Neil Booth, from bug report #36 - -template class vect; -template vect operator-( const vect&, const vect& ); - -template -class vect -{ -public: - vect( t a ); - - vect( const vect& v ); - ~vect(); - - vect& operator=( const vect& v ); - vect operator-( void ) const; - friend vect operator- <>( const vect&, const vect& ); - -private: - t a_; -}; - -template inline -vect::vect( t a ) -: a_(a) -{ -} - -template inline -vect::vect( const vect& v ) -: a_(v.a_) -{ -} - -template inline -vect::~vect() -{ -} - -template inline vect& -vect::operator=( const vect& v ) -{ - a_ = v.a_; - return *this; -} - -template inline vect -vect::operator-( void ) const -{ - return vect( -a_ ); -} - -template inline vect -operator-( const vect& u, const vect& v ) -{ - return vect( u.a_ - v.a_ ); -} - -int -main( void ) -{ - vect a( 1.0 ), b( 0.0 ); - b = -a; -}