9 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3struct A {4 template<typename T>5 void f();6};7class A::f<int>;8// expected-error@-1 {{identifier followed by '<' indicates a class template specialization but 'f' refers to a function template}}9