☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGen
/
2002-05-23-StaticValues.c
☽
☼
clang/test/CodeGen/2002-05-23-StaticValues.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}