Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-const1.C

raw
1 // PR c++/67411
2 // { dg-do compile { target c++14 } }
3
4 template <class T>
5 void f()
6 {
7 int i = 42;
8 [x = i] {
9 [&](auto) {
10 [=] { return x; }();
11 }(1);
12 }();
13 }
14
15 int main()
16 {
17 f<int>();
18 }