From: Misha Brukman Date: Fri, 13 Dec 2002 04:43:32 +0000 (+0000) Subject: This way it's easier to test: if the call to external exit(0) succeeded, X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=339ff0acb8ba54dc2289724eea0a8e4997c0d0fe;p=oota-llvm.git 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 --- diff --git a/test/ExecutionEngine/test-call.ll b/test/ExecutionEngine/test-call.ll index 0b5d2817b81..4c7bbaa46db 100644 --- a/test/ExecutionEngine/test-call.ll +++ b/test/ExecutionEngine/test-call.ll @@ -1,7 +1,7 @@ declare void %exit(int) -void %main() { - call void %exit(int 1) - ret void +int %main() { + call void %exit(int 0) + ret int 1 }