summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ptrmem1.C
blob: b1174c7d97b34f03dae8c4d3a0ce8911d6843bfe (plain)
1
2
3
4
5
6
7
8
9
10
struct A {
  void f(int = 0) const;
};

typedef void (A::*PF)(int) const;

void f()
{
  PF pf = &A::f;
}