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

struct B
{
  int i;
};

void func()
{
  [](const B& b) -> const int& { return b.i; };
  [](const B& b) { return b; };
}