summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested3.C
blob: 2cc6f96408324bf5ed4eb58fc7879d6d0e20d8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/41896
// { dg-options "-std=c++0x" }

void nested_lambda()
{
  float val;

  [val]()
    {
      [val](){};
    };
}