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
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
linkage-redecl.c
blob
cca1d415dc3ce156f084c5213c15fe0b1a0d7c4d
1
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3
// CHECK: @test2_i = internal global i32 99
4
static int
test2_i
=
99
;
5
int
test2_f
(
void
) {
6
extern
int
test2_i
;
7
return
test2_i
;
8
}
9
10
// C99 6.2.2p3
11
// PR3425
12
static void
f
(
int
x
);
13
14
void
g0
(
void
) {
15
f
(
5
);
16
}
17
18
extern
void
f
(
int
x
) { }
// still has internal linkage
19
// CHECK-LABEL: define internal {{.*}}void @f