1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 target datalayout = "e-p:32:32"
4 target triple = "i686-pc-linux-gnu"
8 ; CHECK: call i32 bitcast
10 %tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
14 declare i8* @ctime(i32*)
16 define internal { i8 } @foo(i32*) {
21 define void @test_struct_ret() {
22 ; CHECK-LABEL: @test_struct_ret
25 %0 = call { i8 } bitcast ({ i8 } (i32*)* @foo to { i8 } (i16*)*)(i16* null)