1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
2007-01-17 07:59:14 +00:00

13 lines
264 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
%bob = type { int }
int %alias() {
%pbob1 = alloca %bob
%pbob2 = getelementptr %bob* %pbob1
%pbobel = getelementptr %bob* %pbob2, long 0, uint 0
%rval = load int* %pbobel
ret int %rval
}