☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this12.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this12.C
code
plain
raw
1
// Uses of 'this' in unevaluated context are not odr-uses.
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
int f() { return 0; }
7
int i;
8
9
void foo()
10
{
11
[] () { sizeof(i); sizeof(f()); };
12
}
13
};