repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this2.C
blob
56d6b0c8ab99d462734a01f33adb394b27179184
1
// PR c++/43856
2
// Test for implicit 'this' capture via rewriting.
3
// { dg-do compile { target c++11 } }
4
5
struct S1 {
6
int operator()(int);
7
int i;
8
void g();
9
void f() {
10
[=]() { // { dg-warning "implicit capture" "" { target c++2a } }
11
i;
12
g();
13
S1::g();
14
operator()(42);
15
};
16
}
17
};