repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git]
/
test
/
FrontendC
/
2006-03-03-MissingInitializer.c
blob
19d4bc7fe7a84e24e340a89d4dd39e30196b818c
1
// RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
2
// RUN: llvm-dis | grep {@nate.*internal global i32 0}
3
4
struct
X
{
int
*
XX
;
int
Y
;};
5
6
void
foo
() {
7
static int
nate
=
0
;
8
struct
X bob
= { &
nate
,
14
};
9
bar
(&
bob
);
10
}
11