This website requires JavaScript.
Explore
Help
Register
Sign In
RPCS3
/
llvm
Watch
1
Star
0
Fork
0
You've already forked llvm
mirror of
https://github.com/RPCS3/llvm.git
synced
2024-11-25 12:49:50 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
6e49a4b814
llvm
/
test
/
ExecutionEngine
/
test-call.ll
8 lines
77 B
LLVM
Raw
Normal View
History
Unescape
Escape
Testcase for call instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4890 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-03 20:30:03 +00:00
Add main functions to benchmarks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 17:15:07 +00:00
declare
void
%exit
(
i
n
t
)
Testcase for call instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4890 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-03 20:30:03 +00:00
This way it's easier to test: if the call to external exit(0) succeeded, program exits with code 0, no error. If the call does not work/succeed, main returns 1, so we notice it. The other way around doesn't work. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4984 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 04:43:32 +00:00
i
n
t
%main
(
)
{
call
void
%exit
(
i
n
t
0
)
ret
i
n
t
1
Testcase for call instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4890 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-03 20:30:03 +00:00
}
Reference in New Issue
Copy Permalink