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
[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2002-05-23-StaticValues.c
blob
4f179ce33101600ac2fa1404c8c0981de497b0fd
1
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
/* Make sure the frontend is correctly marking static stuff as internal! */
4
5
int
X
;
6
static int
Y
=
12
;
7
8
static void
foo
(
int
Z
) {
9
Y
=
Z
;
10
}
11
12
void
*
test
(
void
) {
13
foo
(
12
);
14
return
&
Y
;
15
}