summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
blob: 309191cdc4195f5f4ae7b07cf096a740a2624953 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | 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
}