summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/pmd1.C
blob: 8fddb22b5c39b773791bb4029db661c60446ba6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

class A;
struct XX { int A::*py; };

class A {
public:
  int p;
  void setp(XX *xp);
};

void A::setp(XX *xp) { xp->py = &A::p; }