projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new testcase
[oota-llvm.git]
/
test
/
Transforms
/
ScalarRepl
/
badarray.ll
1
; RUN: llvm-as < %s | opt -scalarrepl -mem2reg | llvm-dis | grep alloca
2
3
int %test() {
4
%X = alloca [ 4 x int ]
5
%Y = getelementptr [4x int]* %X, long 0, long 6 ; Off end of array!
6
store int 0, int* %Y
7
8
%Z = load int* %Y
9
ret int %Z
10
}