ish/tests/manual/thread.c
Matthew Merrill e23c6bc2a4 Move all tests to tests subdirectory
Previous tests/ contents are moved to tests/manual.
E2E tests are moved to tests/e2e.
2019-06-06 22:33:53 -07:00

16 lines
282 B
C

#include <stdio.h>
#include <pthread.h>
void *thread(void *data) {
printf("thread\n");
return data;
}
int main() {
pthread_t t;
printf("main before create\n");
pthread_create(&t, NULL, thread, NULL);
pthread_detach(t);
printf("main after create\n");
}