bolt/deps/llvm-18.1.8/clang/test/CXX/temp/temp.decls/temp.friend/p8.cpp
2025-02-14 19:21:04 +01:00

6 lines
205 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
template<class T> class A { };
class X {
template<class T> friend class A<T*>; // expected-error{{partial specialization cannot be declared as a friend}}
};