Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / InstCombine / 2003-11-03-VarargsCallBug.ll
1 ; The cast in this testcase is not eliminable on a 32-bit target!
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep inttoptr
3
4 target endian = little
5 target pointersize = 32
6
7 declare void %foo(...)
8
9 void %test(long %X) {
10         %Y = cast long %X to int*
11         call void (...)* %foo(int* %Y)
12         ret void
13 }