[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c
Evan Cheng
evan.cheng at apple.com
Tue Nov 28 09:42:57 PST 2006
Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C/loader:
load.c updated: 1.2 -> 1.3
---
Log message:
Fix undefined behavior, main should return 0 if executed correctly.
---
Diffs of the changes: (+2 -1)
load.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c:1.2 llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c:1.3
--- llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c:1.2 Mon Mar 7 10:41:13 2005
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C/loader/load.c Tue Nov 28 11:42:43 2006
@@ -29,7 +29,7 @@
char MAIN_ROUTINE[LABEL_SIZE_1+1];
/* -------------------------------- main ---------------------------------- */
-void main(int argc,char **argv)
+int main(int argc,char **argv)
{
FILE *INPUT_STREAM; /* Input file stream */
SYMBOL_TABLE SYM_TAB; /* The symbol table */
@@ -155,4 +155,5 @@
(void) printf("Errors detected. No executable created.\n");
}
+ return 0;
}
More information about the llvm-commits
mailing list