X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.robertl%2Feb59.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.robertl%2Feb59.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=395e8385aeea1d781eecfbcc69ffb26f3790726f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C deleted file mode 100644 index 395e8385..00000000 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C +++ /dev/null @@ -1,30 +0,0 @@ -#define INC_FUNCTIONAL 1 -#define USE_STATIC_CAST 1 - -#include -#include -#ifdef INC_FUNCTIONAL -#include -#endif - -using namespace std; - -template int p( int val, R& r ) -{ - return val + r; -} - -template void f( vector& v ) -{ -#ifdef USE_STATIC_CAST - accumulate( v.begin(), v.end(), 0, static_cast(p) ); -#else - accumulate( v.begin(), v.end(), 0, p ); -#endif -} - -int main() -{ - vector r; - f( r ); -}