Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this12.C

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 };