When transforming a call to a bitcast function into
[oota-llvm.git] / test / Transforms / InstCombine / 2008-01-06-VoidCast.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
2
3 define void @f(i16 %y) {
4         ret void
5 }
6
7 define i32 @g(i32 %y) {
8         %x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y )          ; <i32> [#uses=1]
9         ret i32 %x
10 }