Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-this11.C
blob2618295662e6ab1e271a1f7fccc50218e605f41d
1 // PR c++/51494, c++/56222
2 // Uses of static members and creating pointers to members aren't odr-uses
3 // of 'this'.
4 // { dg-do compile { target c++11 } }
6 struct A
8   static void f() {}
9   static int i;
10   int j;
11   void f(int);
13   void foo()
14   {
15     [] () {
16       ++i;
17       f();
18       &A::j;
19       (void(*)())&A::f;
20     };
21   }