(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
lambda/
lambda-nsdmi4.C
// PR c++/51927
// { dg-do compile { target c++11 } }

struct function
{
  template<typename Functor>
  function(Functor);
};

struct testee
{
  function l1 = []() { };
  function l2 = [=]() { l1; }; // { dg-warning "implicit capture" "" { target c++2a } }
};