Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this2.C
blob: 5029a4a7638a4ee1d716f6e3959f9455a38aaee2 [
file
] [
log
] [
blame
]
// PR c++/43856
// Test for implicit 'this' capture via rewriting.
// { dg-do compile { target c++11 } }
struct
S1
{
int
operator
()(
int
);
int
i
;
void
g
();
void
f
()
{
[=]()
{
i
;
g
();
S1
::
g
();
operator
()(
42
);
};
}
};