aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
blob: 6222169e08d427f0a587d37a2fb4f2c9cff92457 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output

%X = global int 5
long %test() {
        %C = add long 1, 2
	%V = add long cast(int* %X to long), %C
	ret long %V
}