projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make the X86 subtarget compute the basic target type: ELF, Cygwin, Darwin,
[oota-llvm.git]
/
test
/
CFrontend
/
2002-05-23-StaticValues.c
1
// RUN: %llvmgcc -S %s -o - | llvm-as -f -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() {
13
foo(12);
14
return &Y;
15
}