30 lines · plain
1; RUN: llvm-as < %s | llvm-dis > %t1.ll2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll3; RUN: diff %t1.ll %t2.ll4 5%myty = type i32 6%myfn = type float (i32,double,i32,i16)7%0 = type i32(ptr)8%1 = type i32(i32)9%2 = type i32(ptr)10 11 %thisfuncty = type ptr12 13declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)14 15define i32 @zarro(i32 %Func) {16Startup:17 add i32 0, 10 ; <i32>:0 [#uses=0]18 ret i32 019}20 21define i32 @test(i32) {22 call void @F( %thisfuncty @zarro, %thisfuncty @test, %thisfuncty @foozball )23 ret i32 024}25 26define i32 @foozball(i32) {27 ret i32 028}29 30