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