(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
diagnostic/
not-a-function-template-1.C
// { dg-do compile { target c++14 } }

template<typename> int A;  // { dg-message "24:variable template" }

template int A<>();  // { dg-error "14:template<class>" }

struct B {
  friend int A<>();  // { dg-error "14:specialization" }
};