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