// RUN: %clang_cc1 -fsyntax-only -verify %s template void f0(T) { } // expected-note{{previous}} template void f0(U) { } // expected-error{{redefinition}} template void f0() { } // expected-note{{previous}} template void f0() { } // expected-error{{redefinition}} typedef int INT; template class X> void f0() { } // expected-note{{previous}} template class> void f0() { } // expected-error{{redefinition}} template struct MetaFun; template typename MetaFun::type f0(const T&) { while (1) {} } // expected-note{{previous}} template typename MetaFun::type f0(const U&) { while (1) {} } // expected-error{{redefinition}} // FIXME: We need canonicalization of expressions for this to work // template struct A { }; // template void f0(A) { } // Xpected-note{{previous}} // template void f0(A) { } // Xpected-error{{redefinition}}