| Fariborz Jahanian | f071e9b | 2009-10-23 21:01:39 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -pedantic -verify %s |
| 2 | |||||
| 3 | struct C {}; | ||||
| 4 | |||||
| 5 | typedef void (C::*pmfc)(); | ||||
| 6 | |||||
| 7 | void 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 | |||||