summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmf.C
blob: b601dd9ffff89de4662bf89944be8de4e1bea80f (plain)
1
2
3
4
5
6
7
// { dg-do assemble  }
// PRMS Id: 4333
// Bug: g++ can't deal with casts to pointer to member function.

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