comparison gcc/testsuite/g++.dg/cpp1z/lambda-this6.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
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 }