llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p3.cpp

4 lines
174 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
void f(int) { } // expected-note {{previous definition is here}}
void f(const int) { } // expected-error {{redefinition of 'f'}}