llvm-project/llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll

9 lines
187 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
2003-05-28 00:45:09 +08:00
%X = global int 5
long %test() {
%C = add long 1, 2
%V = add long cast(int* %X to long), %C
ret long %V
}