// RUN: %clang_cc1 -fsyntax-only -verify %s // Test instantiation of member functions of class templates defined out-of-line template struct X0 { void f(T *t, const U &u); void f(T *); }; template void X0::f(T *t, const U &u) { *t = u; // expected-warning{{indirection on operand of type 'void *'}} expected-error{{not assignable}} } void test_f(X0 xfi, X0 xvi, float *fp, void *vp, int i) { xfi.f(fp, i); xvi.f(vp, i); // expected-note{{instantiation}} }