summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmf6.C
blob: 13c0981f95c76cbf1d44c55bcde6cd94a9192ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// PRMS Id: 5656
// Bug: g++ tries (which is a bug) and fails (which is a bug) to initialize
// var at runtime.

struct A
{
    int func(int);
    int func() const;
};
int (A::* var) () const = & A::func;