summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll
blob: 8cdaa5841f82907dfec0d134fadcced28452d895 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | 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
}