NetBSD/regress/lib/libpthread/exit1/exit1.c

17 lines
209 B
C

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
int
main(void)
{
printf("Test of pthread_exit() in main thread only.\n");
pthread_exit(NULL);
printf("You shouldn't see this.");
exit(1);
}