1 // RUN: clang-cc -fsyntax-only -verify %s
9 int f(T* ptr, int T::*pm) { // expected-error{{member pointer}}
14 template struct X1<Y>;
15 template struct X1<int>; // expected-note{{instantiation}}
17 template<typename T, typename Class>
19 T f(Class &obj, T Class::*pm) { // expected-error{{to a reference}} \
20 // expected-error{{member pointer to void}}
25 template struct X2<int, Y>;
26 template struct X2<int&, Y>; // expected-note{{instantiation}}
27 template struct X2<const void, Y>; // expected-note{{instantiation}}