RISC-V: Fix rtl checking enabled failure with -msave-restore.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / net36.C
blob3ffa60e37a28dc3da61059678208399af8fa0779
1 // { dg-do assemble  }
3 class X;
5 class A {
6 public:
7   void handlerFn(X*);
8 };
10 typedef void (A::*handler) (X*);
12 class B {
13 public:
14   void setHandler(handler);
17 void f(B* b) {
18   b->setHandler(A::handlerFn);  // { dg-error "" }