blob: edb1f281ebab91f97a701278d9e12225b2433988 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | 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 int
6 %myfn = type float (int,double,uint,short)
7 type int(%myfn*)
8 type int(int)
9 type int(int(int)*)
10
11 %thisfuncty = type int (int) *
12implementation
13
14declare void %F(%thisfuncty, %thisfuncty, %thisfuncty)
15
16; This function always returns zero
17int %zarro(int %Func)
18begin
19Startup:
20 add int 0, 10
21 ret int 0
22end
23
24int %test(int)
25begin
26 call void %F(%thisfuncty %zarro, %thisfuncty %test, %thisfuncty %foozball)
27 ret int 0
28end
29
30int %foozball(int)
31begin
32 ret int 0
33end
34