aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static_cast.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/static_cast.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/static_cast.C22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static_cast.C b/gcc/testsuite/g++.old-deja/g++.pt/static_cast.C
deleted file mode 100644
index 26f26c56fc9..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/static_cast.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-
-template <class InputIterator, class BinaryOperation>
-void accumulate(InputIterator first,
- BinaryOperation binary_op) {
-}
-
-
-template<class R> int p( int val, R& r )
-{
- return val + r;
-}
-
-template<class R> void f(R)
-{
- accumulate(0, static_cast<int (*)(int, R&)>(p) );
-}
-
-int main()
-{
- f(0);
-}