llvm-6502/test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll
Reid Spencer e5d4efa63e Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31896 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-23 15:14:52 +00:00

15 lines
335 B
LLVM

; RUN: llvm-as < %s | opt -constmerge > /dev/null
%foo = internal constant {int} {int 7}
%bar = internal constant {int} {int 7}
implementation
declare int %test(int*)
void %foo() {
call int %test(int* getelementptr ( {int} * %foo, long 0, uint 0))
call int %test(int* getelementptr ( {int} * %bar, long 0, uint 0))
ret void
}