aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmf.C
blob: 677363995b711d5ca535078cc1ae826742e45377 (plain)
1
2
3
4
5
6
7
// PRMS Id: 4333
// Bug: g++ can't deal with casts to pointer to member function.
// Build don't link:

class A { };
typedef void (A::* pmf)();
void foo () { (pmf) 0; }