repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
function-overloaded-redecl.cpp
blob
00778816920e2cceb64023e7a1a2f7e194232a27
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
typedef
const int
cInt
;
4
5
void
f
(
int
);
6
void
f
(
const int
);
// redecl
7
8
void
f
(
int
) { }
// expected-note {{previous definition is here}}
9
void
f
(
cInt
) { }
// expected-error {{redefinition of 'f'}}
10