// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
structC{staticint(C::*a);};typedefvoid(C::*pmfc)();voidg(pmfc){
C *c;
c->*pmfc();// expected-error {{invalid use of pointer to member type after ->*}}
C c1;
c1.*pmfc();// expected-error {{invalid use of pointer to member type after .*}}
c->*(pmfc());// expected-error {{invalid use of pointer to member type after ->*}}
c1.*((pmfc()));// expected-error {{invalid use of pointer to member type after .*}}
}inta(C*x){return x->*C::a;}