blob: 2618295662e6ab1e271a1f7fccc50218e605f41d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// PR c++/51494, c++/56222
// Uses of static members and creating pointers to members aren't odr-uses
// of 'this'.
// { dg-do compile { target c++11 } }
struct A
{
static void f() {}
static int i;
int j;
void f(int);
void foo()
{
[] () {
++i;
f();
&A::j;
(void(*)())&A::f;
};
}
};
|