projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
AsmParser now depends on clients to verify that input is well formed
[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
; This function always returns zero
11
int "zarro"(int %Func)
12
begin
13
Startup:
14
add int 0, 10
15
ret int 0
16
end
17
18
int "test"(int)
19
begin
20
add %thisfuncty %zarro, %test
21
add %thisfuncty %test, %foozball
22
ret int 0
23
end
24
25
int "foozball"(int)
26
begin
27
ret int 0
28
end
29