1 // Contributed by Iain Sandoe <iain@codesourcery.com>, December 2014. */
3 // { dg-options "-std=c++11" }
6 template<class Function>
7 Function thing(Function fn, int a)
14 test (int *arr, unsigned n)
17 for (unsigned i=0; i<n; i++) {
19 thing ([&total] (int a) { total += a; }, a);