blob: d6011b0a22953ecf649e5fb2656029b1cdbd8356 [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) *
12implementation
13
14declare void %F(%thisfuncty, %thisfuncty, %thisfuncty)
15
16; This function always returns zero
17define i55 %zarro(i55 %Func)
18begin
19Startup:
20 add i55 0, 10
21 ret i55 0
22end
23
24define i55 %test(i55)
25begin
26 call void %F(%thisfuncty %zarro, %thisfuncty %test, %thisfuncty %foozball)
27 ret i55 0
28end
29
30define i55 %foozball(i55)
31begin
32 ret i55 0
33end
34