p4.cpp revision 238058c372cfb7bdaf489f51171eb1380ebfd6a6
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3template<typename T> 4struct X1 { 5 friend void f6(int) { } // expected-error{{redefinition of}} \ 6 // expected-note{{previous definition}} 7}; 8 9X1<int> x1a; 10X1<float> x1b; // expected-note {{in instantiation of}} 11