X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Funify1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Funify1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=2f0a18cf4574e083d08295c033ded217aed27e39;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/unify1.C b/gcc/testsuite/g++.dg/template/unify1.C deleted file mode 100644 index 2f0a18cf..00000000 --- a/gcc/testsuite/g++.dg/template/unify1.C +++ /dev/null @@ -1,26 +0,0 @@ -// Test non-type template argument folding. -// Origin: smacdonald@seimac.com - -// { dg-do compile } - -template < int I1, int I2 > -class unit -{ -public: - unit() {} - unit( const unit& ) {} - - template< int Q1, int Q2 > - unit< I1 - Q1, I2 - Q2 > operator / ( const unit< Q1, Q2 >& rhs ) const { - return unit< I1 - Q1, I2 - Q2 >(); - } - -}; - -int main() -{ - const unit<1,0> u1; - const unit<2,0> u2; - - unit<-1,0> u3( u1 / u2 ); -}