aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p11012.C
blob: aca77d42607653423c2c17c53faebfd6e38f8d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link:
// Special g++ Options: -Wno-pmf-conversions
// prms-id: 11012

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

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