summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2002-12-13 04:43:32 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2002-12-13 04:43:32 +0000
commit2a0baf1a2b45d6cecbc6502fd09b80a2665b6037 (patch)
treeb255f3aa19116cedd2d61df1d23a304ccf66c6ae
parent82f1580ee847d3aedccd5826b33040ee2e713a39 (diff)
downloadbcm5719-llvm-2a0baf1a2b45d6cecbc6502fd09b80a2665b6037.tar.gz
bcm5719-llvm-2a0baf1a2b45d6cecbc6502fd09b80a2665b6037.zip
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. :) llvm-svn: 4984
-rw-r--r--llvm/test/Regression/Jello/test-call.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Regression/Jello/test-call.ll b/llvm/test/Regression/Jello/test-call.ll
index 0b5d2817b81..4c7bbaa46db 100644
--- a/llvm/test/Regression/Jello/test-call.ll
+++ b/llvm/test/Regression/Jello/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
}
OpenPOWER on IntegriCloud