Add new getelementptr elimination test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-04 16:35:14 +00:00
parent 0864acf07b
commit a3c4ba427b

View File

@ -35,3 +35,10 @@ sbyte * %foo5() {
%A = getelementptr [10 x sbyte]* %Global, long 0, long 4
ret sbyte* %A
}
int* %foo6() {
%M = malloc [4 x int]
%A = getelementptr [4 x int]* %M, long 0, long 0
%B = getelementptr int* %A, long 2
ret int* %B
}