projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1465670913beb5ef7e1a3836259ee952cca7bb49
[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
implementation
7
8
; This function always returns zero
9
int "zarro"(int %Func)
10
%q = uint 4000000000
11
%p = int 0
12
begin
13
Startup:
14
add int %p, 10
15
ret int %p
16
end
17
18
int "test"(int)
19
%thisfuncty = type int (int)
20
begin
21
add %thisfuncty %zarro, %test
22
add %thisfuncty %test, %foozball
23
ret int 0
24
end
25
26
int "foozball"(int)
27
begin
28
ret int 0
29
end
30