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
This commit is contained in:
Uros Bizjak 2010-05-13 00:45:35 +02:00 committed by Uros Bizjak
parent 5f902d766c
commit e66afe476e
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-05-13 Uros Bizjak <ubizjak@gmail.com>
* tests/leak_test.c (main): Declare as int. Return 0.
* tests/thread_leak_test.c (main): Ditto.
* tests/trace_test.c (main): Ditto.
2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com> 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
PR target/42811 PR target/42811

View File

@ -1,6 +1,6 @@
#include "leak_detector.h" #include "leak_detector.h"
main() { int main() {
int *p[10]; int *p[10];
int i; int i;
GC_find_leak = 1; /* for new collect versions not compiled */ GC_find_leak = 1; /* for new collect versions not compiled */
@ -18,4 +18,5 @@ main() {
CHECK_LEAKS(); CHECK_LEAKS();
CHECK_LEAKS(); CHECK_LEAKS();
CHECK_LEAKS(); CHECK_LEAKS();
return 0;
} }

View File

@ -19,7 +19,7 @@ void * test(void * arg) {
#define NTHREADS 5 #define NTHREADS 5
main() { int main() {
int i; int i;
pthread_t t[NTHREADS]; pthread_t t[NTHREADS];
int code; int code;
@ -37,4 +37,5 @@ main() {
CHECK_LEAKS(); CHECK_LEAKS();
CHECK_LEAKS(); CHECK_LEAKS();
CHECK_LEAKS(); CHECK_LEAKS();
return 0;
} }

View File

@ -16,7 +16,7 @@ struct treenode * mktree(int i) {
return r; return r;
} }
main() int main()
{ {
int i; int i;
for (i = 0; i < 10; ++i) { for (i = 0; i < 10; ++i) {
@ -26,4 +26,5 @@ main()
GC_generate_random_backtrace(); GC_generate_random_backtrace();
GC_generate_random_backtrace(); GC_generate_random_backtrace();
GC_generate_random_backtrace(); GC_generate_random_backtrace();
return 0;
} }