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
/
2003-05-29-ArrayFail.ll
1
; RUN: as < %s | opt -scalarrepl | dis | grep alloca | grep '4 x'
2
3
; Test that an array is not incorrectly deconstructed...
4
5
int %test() {
6
%X = alloca [4 x int]
7
%Y = getelementptr [4 x int]* %X, long 0, long 0
8
%Z = getelementptr int* %Y, long 1 ; Must preserve arrayness!
9
%A = load int* %Z
10
ret int %A
11
}