summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi4.C
blob: 127bd26b95305213d119d41bd658dba0074e1f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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 } }
};