diff options
Diffstat (limited to 'tests/create1.c')
-rw-r--r-- | tests/create1.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/create1.c b/tests/create1.c new file mode 100644 index 0000000..841c565 --- /dev/null +++ b/tests/create1.c @@ -0,0 +1,19 @@ +#include <pthread.h> +#include <stdio.h> +#include <windows.h> + +void * func(void * arg) +{ + printf("Hello world\n"); + return 0; +} + +int +main() +{ + pthread_t t; + pthread_create(&t, NULL, func, NULL); + + Sleep(5000); + return 0; +} |