summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p11012.C
blob: b851f2c44e2b847da98e38be04486e77a40e6f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { 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;
}