blob: 132d4ca11d7ca3192c79b59a27be0d4a5bd7b465 [file] [log] [blame]
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static pthread_t main_thread;
static void breakpoint(void) {}
static void* start_thread(__attribute__((unused)) void* p) {
test_assert(0 == pthread_join(main_thread, NULL));
breakpoint();
atomic_puts("EXIT-SUCCESS");
return NULL;
}
int main(void) {
pthread_t thread;
main_thread = pthread_self();
test_assert(0 == pthread_create(&thread, NULL, start_thread, NULL));
pthread_exit(NULL);
test_assert(0);
return 0;
}