Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-this12.C
blob41e4edd8a0fbcee598433392a81b97406aa1c61a
1 // Uses of 'this' in unevaluated context are not odr-uses.
2 // { dg-do compile { target c++11 } }
4 struct A
6   int f() { return 0; }
7   int i;
9   void foo()
10   {
11     [] () { sizeof(i); sizeof(f()); };
12   }