rt_gccstream/gcc/testsuite/g++.dg/expr/ptrmem6a.C

10 lines
104 B
C

struct Z {
int f();
};
int Z::f() { return 7; }
struct Z z;
int (Z::*m)() = &Z::f;
struct Z*p = &z;