Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/lambda-this6.C

raw
1 // { dg-do compile { target c++17 } }
2
3 struct S
4 {
5 int a = [this] { return 6; } ();
6 };
7
8 S
9 foo()
10 {
11 return {};
12 }