cxx-class-template-specialization.cpp 243 B

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