]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/eb59.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb59.C
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 (file)
index 395e838..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#define INC_FUNCTIONAL  1
-#define USE_STATIC_CAST 1
-
-#include <vector>
-#include <numeric>
-#ifdef INC_FUNCTIONAL
-#include <functional>
-#endif
-
-using namespace std;
-
-template<class R> int p( int val, R& r )
-{
-   return val + r;
-}
-
-template<class R> void f( vector<R>& v )
-{
-#ifdef USE_STATIC_CAST
-   accumulate( v.begin(), v.end(), 0, static_cast<int (*)(int, R&)>(p) );
-#else
-   accumulate( v.begin(), v.end(), 0, p<R> );
-#endif
-}
-
-int main()
-{
-   vector<int> r;
-   f( r );
-}