diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2010-05-13 00:45:35 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2010-05-13 00:45:35 +0200 |
commit | e66afe476e21be67a3e7165fbeb548d13b5b8991 (patch) | |
tree | ee8f8ce93d71794c0456acf255fe97f163b62b08 /boehm-gc/tests | |
parent | 5f902d766c18beade9fd700b53a83d4e57622b10 (diff) | |
download | gcc-e66afe476e21be67a3e7165fbeb548d13b5b8991.tar.gz |
leak_test.c (main): Declare as int.
* tests/leak_test.c (main): Declare as int. Return 0.
* tests/thread_leak_test.c (main): Ditto.
* tests/trace_test.c (main): Ditto.
From-SVN: r159344
Diffstat (limited to 'boehm-gc/tests')
-rw-r--r-- | boehm-gc/tests/leak_test.c | 3 | ||||
-rw-r--r-- | boehm-gc/tests/thread_leak_test.c | 3 | ||||
-rw-r--r-- | boehm-gc/tests/trace_test.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/boehm-gc/tests/leak_test.c b/boehm-gc/tests/leak_test.c index 421d0c6cd4a..bf563ac1c16 100644 --- a/boehm-gc/tests/leak_test.c +++ b/boehm-gc/tests/leak_test.c @@ -1,6 +1,6 @@ #include "leak_detector.h" -main() { +int main() { int *p[10]; int i; GC_find_leak = 1; /* for new collect versions not compiled */ @@ -18,4 +18,5 @@ main() { CHECK_LEAKS(); CHECK_LEAKS(); CHECK_LEAKS(); + return 0; } diff --git a/boehm-gc/tests/thread_leak_test.c b/boehm-gc/tests/thread_leak_test.c index 1174705e45e..eb4cb9bd018 100644 --- a/boehm-gc/tests/thread_leak_test.c +++ b/boehm-gc/tests/thread_leak_test.c @@ -19,7 +19,7 @@ void * test(void * arg) { #define NTHREADS 5 -main() { +int main() { int i; pthread_t t[NTHREADS]; int code; @@ -37,4 +37,5 @@ main() { CHECK_LEAKS(); CHECK_LEAKS(); CHECK_LEAKS(); + return 0; } diff --git a/boehm-gc/tests/trace_test.c b/boehm-gc/tests/trace_test.c index 870e38723a8..b84d53ea967 100644 --- a/boehm-gc/tests/trace_test.c +++ b/boehm-gc/tests/trace_test.c @@ -16,7 +16,7 @@ struct treenode * mktree(int i) { return r; } -main() +int main() { int i; for (i = 0; i < 10; ++i) { @@ -26,4 +26,5 @@ main() GC_generate_random_backtrace(); GC_generate_random_backtrace(); GC_generate_random_backtrace(); + return 0; } |