Debian Codegraph @

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

raw
1 // { dg-do compile { target c++17 } }
2
3 struct S {
4 int i;
5 constexpr S() : i(5) {
6 ([*this] () { return i + 10; }());
7 }
8 constexpr operator int() const { return i; }
9 };
10 constexpr int x = S();