blob: ed2747654f97fd8cb2f3f51890b4ff8283756a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Test that implicit 'this' capture works, but that it's still an rvalue.
// { dg-options -std=c++0x }
struct A
{
int i;
void f()
{
[=] { i = 0; };
[&] { i = 0; };
[=] { this = 0; }; // { dg-error "lvalue" }
}
};
|