yggdrasil/test.c

21 lines
381 B
C

#include <pthread.h>
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/yggdrasil.h>
static void *function(void *arg) {
abort();
return NULL;
}
int main(int argc, const char **argv) {
pthread_t thread;
assert(pthread_create(&thread, NULL, function, (void *) NULL) == 0);
pthread_join(thread, NULL);
return 0;
}