Files
valgrind/none/tests/pth_exit.c
Nicholas Nethercote 3dea409609 Move a bunch of tests from corecheck/tests/ to none/tests/.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4060
2005-06-30 02:15:59 +00:00

21 lines
298 B
C

#include <pthread.h>
#include <unistd.h>
static void *th(void *v)
{
sleep(1);
pthread_exit(0);
}
int main()
{
pthread_t a;
pthread_create(&a, NULL, th, NULL);
pthread_create(&a, NULL, th, NULL);
pthread_create(&a, NULL, th, NULL);
pthread_create(&a, NULL, th, NULL);
pthread_exit(0);
}