// RUN: %clang_cc1 -fsyntax-only -verify %s template struct A; template struct A { void f0(); void f1(); void f2(); }; template<> struct A { void g0(); }; // FIXME: We should produce diagnostics pointing out the // non-matching candidates. template void A::f0() { } // expected-error{{does not refer into a class, class template or class template partial specialization}} template void A::f1() { } // expected-error{{out-of-line definition}}