p11012.C   [plain text]


// { dg-do assemble  }
// { dg-options "-Wno-pmf-conversions" }
// prms-id: 11012

class Foo {
public:
  int f(){ return 0; }
};

void foo() {
  void *p1 = &Foo::f;
  const void *p2 = &Foo::f;
  int (*p3)() = &Foo::f;
}