2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / static_cast.C
blob89e794ab764c3571bb0d0927857b722217220d8c
1 // { dg-do assemble  }
3 template <class InputIterator, class BinaryOperation>
4 void accumulate(InputIterator first, 
5                  BinaryOperation binary_op) {
9 template<class R> int p( int val, R& r )
11    return val + r;
14 template<class R> void f(R)
16    accumulate(0, static_cast<int (*)(int, R&)>(p) );
19 int main()
21    f(0);