projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New testcase
[oota-llvm.git]
/
test
/
Feature
/
forwardreftest.ll
diff --git
a/test/Feature/forwardreftest.ll
b/test/Feature/forwardreftest.ll
index 1465670913beb5ef7e1a3836259ee952cca7bb49..641aff5ad756258f7f037e1046b6d38d4764faa6 100644
(file)
--- a/
test/Feature/forwardreftest.ll
+++ b/
test/Feature/forwardreftest.ll
@@
-3,27
+3,27
@@
type int(%myfn)
type int(int)
type int(int(int))
type int(%myfn)
type int(int)
type int(int(int))
+
+ %thisfuncty = type int (int) *
implementation
implementation
+declare void %F(%thisfuncty, %thisfuncty, %thisfuncty)
+
; This function always returns zero
; This function always returns zero
-int "zarro"(int %Func)
- %q = uint 4000000000
- %p = int 0
+int %zarro(int %Func)
begin
Startup:
begin
Startup:
- add int
%p
, 10
- ret int
%p
+ add int
0
, 10
+ ret int
0
end
end
-int "test"(int)
- %thisfuncty = type int (int)
+int %test(int)
begin
begin
- add %thisfuncty %zarro, %test
- add %thisfuncty %test, %foozball
+ call void %F(%thisfuncty %zarro, %thisfuncty %test, %thisfuncty %foozball)
ret int 0
end
ret int 0
end
-int
"foozball"
(int)
+int
%foozball
(int)
begin
ret int 0
end
begin
ret int 0
end