brintos

brintos / llvm-project-archived public Read only

0
0
Text · 364 B · 415d634 Raw
8 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2void f(int) { } // expected-note {{previous definition is here}}3void f(const int) { } // expected-error {{redefinition of 'f'}}4 5template <typename T> void ft(T) {}6template <> void ft(int) {} // expected-note {{previous definition is here}}7template <> void ft(int) {} // expected-error {{redefinition of 'ft<int>'}}8