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

class S {
public:
  void (S::*pmf)();
  void foo() {
    pmf();			// { dg-error "pointer-to-member" } 
  }
  static void foo1(S* sp) {
    (sp->pmf)();		// { dg-error "pointer-to-member" } 
  }
};