p4.cpp revision 238058c372cfb7bdaf489f51171eb1380ebfd6a6
1ac7c2c8a9d47df7d652364af3043c41816a18fa4Douglas Gregor// RUN: %clang_cc1 -fsyntax-only -verify %s 2ac7c2c8a9d47df7d652364af3043c41816a18fa4Douglas Gregor 3ac7c2c8a9d47df7d652364af3043c41816a18fa4Douglas Gregortemplate<typename T> 46cfacfe54c75baa4d67f1fbdf4f80644b662818eDouglas Gregorstruct X1 { 5cfe833be882f600206f1587f157b025b368497d7Douglas Gregor friend void f6(int) { } // expected-error{{redefinition of}} \ 6cfe833be882f600206f1587f157b025b368497d7Douglas Gregor // expected-note{{previous definition}} 76cfacfe54c75baa4d67f1fbdf4f80644b662818eDouglas Gregor}; 86cfacfe54c75baa4d67f1fbdf4f80644b662818eDouglas Gregor 9238058c372cfb7bdaf489f51171eb1380ebfd6a6Douglas GregorX1<int> x1a; 10238058c372cfb7bdaf489f51171eb1380ebfd6a6Douglas GregorX1<float> x1b; // expected-note {{in instantiation of}} 11