PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-deduce3.C
blob68ac29c9eac275bc904514298b0e8f542e568a50
1 // PR c++/69223
2 // { dg-do compile { target c++11 } }
4 template <class T> struct A
6   T x[20];
7 };
9 int main()
11   auto l = [](const A<int>& i){ return i; };
12   A<int> a;
14   l(a);