summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net36.C
blob: 3ffa60e37a28dc3da61059678208399af8fa0779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

class X;

class A {
public:
  void handlerFn(X*);
};

typedef void (A::*handler) (X*);

class B {
public:
  void setHandler(handler);
};

void f(B* b) {
  b->setHandler(A::handlerFn);	// { dg-error "" } 
}