Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this.C
blob: b32f8d7cc28e18a3afb3ea499c19edbbd022376c [
file
] [
log
] [
blame
]
// Test that implicit 'this' capture works, but that it's still an rvalue.
// { dg-do compile { target c++11 } }
struct
A
{
int
i
;
void
f
()
{
[=]
{
i
=
0
;
};
[&]
{
i
=
0
;
};
[=]
{
this
=
0
;
};
// { dg-error "lvalue" }
}
};