summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce3.C
blob: 68ac29c9eac275bc904514298b0e8f542e568a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/69223
// { dg-do compile { target c++11 } }

template <class T> struct A
{
  T x[20];
};

int main()
{
  auto l = [](const A<int>& i){ return i; };
  A<int> a;

  l(a);
}