1 // { dg-do run { target c++11 } }
2 // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
10 std::function<int(int)> fib = [&fib] (int n) -> int {
11 //std::cerr << "fib(" << n << ")\n";
13 else return fib(n-1) + fib(n-2);
17 assert(fib(10) == 55);