aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll
blob: c6eb3039f37e1896a2e1515be9931c13e4f6a4b7 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep undef
; XFAIL: *

%str = constant [4 x ubyte] c"str\00"

ubyte %main() {
        %A = load ubyte* getelementptr ([4 x ubyte]* %str, long 0, long 5)
        ret ubyte %A
}