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:
parent
5f902d766c
commit
e66afe476e
4 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||
|
||||
PR target/42811
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue