blob: cc2e8b142fcb8408348f2c297585dd6f149e710b [file] [log] [blame]
Fariborz Jahanianf071e9b2009-10-23 21:01:39 +00001// RUN: clang-cc -fsyntax-only -pedantic -verify %s
2
3struct C {};
4
5typedef void (C::*pmfc)();
6
7void g(pmfc) {
8 C *c;
9 c->*pmfc(); // expected-error {{invalid use of pointer to member type after '->*'}}
10 C c1;
11 c1.*pmfc(); // expected-error {{invalid use of pointer to member type after '.*'}}
12}
13