minix/external/bsd/llvm/dist/clang/test/Parser/cxx-class-template-specialization.cpp

9 lines
243 B
C++
Raw Normal View History

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