summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/ptrmem6a.C
blob: 8dad81c5889afddb7a5dff45568427f292c2de7d (plain)
1
2
3
4
5
6
7
8
9
struct Z {
  int f();
};

int Z::f() { return 7; }

struct Z z;
int (Z::*m)() = &Z::f;
struct Z*p = &z;