xref: /llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p3.cpp (revision eb10b065f2a870b425dcc2040b9955e0eee464b4)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
f(int)2 void f(int) { } // expected-note {{previous definition is here}}
f(const int)3 void f(const int) { } // expected-error {{redefinition of 'f'}}
4 
ft(T)5 template <typename T> void ft(T) {}
ft(int)6 template <> void ft(int) {} // expected-note {{previous definition is here}}
ft(int)7 template <> void ft(int) {} // expected-error {{redefinition of 'ft<int>'}}
8