comparison gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
5 struct S1 { 5 struct S1 {
6 int operator()(int); 6 int operator()(int);
7 int i; 7 int i;
8 void g(); 8 void g();
9 void f() { 9 void f() {
10 [=]() { 10 [=]() { // { dg-warning "implicit capture" "" { target c++2a } }
11 i; 11 i;
12 g(); 12 g();
13 S1::g(); 13 S1::g();
14 operator()(42); 14 operator()(42);
15 }; 15 };