mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
``` linking coroutine-test.exe LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup' ```
30 lines
612 B
C
30 lines
612 B
C
#include "test_initialize_destroy.h"
|
|
#include "test_pthread_resume.h"
|
|
#include "test_transfer_repeat.h"
|
|
#include "test_transfer_return.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
static int
|
|
run_tests(void)
|
|
{
|
|
int result = EXIT_SUCCESS;
|
|
|
|
if (test_initialize_destroy() != EXIT_SUCCESS) result = EXIT_FAILURE;
|
|
if (test_pthread_resume() != EXIT_SUCCESS) result = EXIT_FAILURE;
|
|
if (test_transfer_repeat() != EXIT_SUCCESS) result = EXIT_FAILURE;
|
|
if (test_transfer_return() != EXIT_SUCCESS) result = EXIT_FAILURE;
|
|
|
|
return result;
|
|
}
|
|
|
|
int
|
|
#ifdef _WIN32
|
|
wmain(void)
|
|
#else
|
|
main(void)
|
|
#endif
|
|
{
|
|
return run_tests();
|
|
}
|