aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
blob: db2b504339fa1820721673d431e939f109fbee87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s | 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
}