Initial checkin
[oota-llvm.git] / test / Feature / forwardreftest.ll
1   %myty = type int 
2   %myfn = type float (int,double,uint,short)
3   type int(%myfn)
4   type int(int)
5   type int(int(int))
6
7   %thisfuncty = type int (int) *
8 implementation
9
10 declare void %F(%thisfuncty, %thisfuncty, %thisfuncty)
11
12 ; This function always returns zero
13 int %zarro(int %Func)
14 begin
15 Startup:
16     add int 0, 10
17     ret int 0 
18 end
19
20 int %test(int) 
21 begin
22     call void %F(%thisfuncty %zarro, %thisfuncty %test, %thisfuncty %foozball)
23     ret int 0
24 end
25
26 int %foozball(int)
27 begin
28     ret int 0
29 end
30