projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a slight variant of test10
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2002-09-17-GetElementPtrCrash.ll
1
; RUN: llvm-as < %s | opt -instcombine
2
3
%bob = type { int }
4
5
int %alias() {
6
%pbob1 = alloca %bob
7
%pbob2 = getelementptr %bob* %pbob1
8
%pbobel = getelementptr %bob* %pbob2, long 0, ubyte 0
9
%rval = load int* %pbobel
10
ret int %rval
11
}
12