blob: 5d73eff2f5a9e7a5482926ab5cd6c7a3feee8b8e [file] [log] [blame]
Reid Spencer50006ba2007-01-16 18:08:22 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5 %myty = type i55
6 %myfn = type float (i55,double,i55,i16)
7 type i55(%myfn*)
8 type i55(i55)
9 type i55(i55(i55)*)
10
11 %thisfuncty = type i55 (i55) *
Reid Spencer50006ba2007-01-16 18:08:22 +000012
Reid Spencerce380562007-01-26 08:25:06 +000013declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)
Reid Spencer50006ba2007-01-16 18:08:22 +000014
15; This function always returns zero
Reid Spencerce380562007-01-26 08:25:06 +000016define i55 @zarro(i55 %Func)
Reid Spencer50006ba2007-01-16 18:08:22 +000017begin
18Startup:
19 add i55 0, 10
20 ret i55 0
21end
22
Reid Spencerce380562007-01-26 08:25:06 +000023define i55 @test(i55)
Reid Spencer50006ba2007-01-16 18:08:22 +000024begin
Reid Spencerce380562007-01-26 08:25:06 +000025 call void @F(%thisfuncty @zarro, %thisfuncty @test, %thisfuncty @foozball)
Reid Spencer50006ba2007-01-16 18:08:22 +000026 ret i55 0
27end
28
Reid Spencerce380562007-01-26 08:25:06 +000029define i55 @foozball(i55)
Reid Spencer50006ba2007-01-16 18:08:22 +000030begin
31 ret i55 0
32end
33