Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/tools/regression/pthread/unwind/main_thread_exit.cpp
39553 views
1
/* check unwinding for main thread */
2
3
#include <pthread.h>
4
#include <stdio.h>
5
#include <stdlib.h>
6
7
#include "Test.cpp"
8
9
int
10
main()
11
{
12
Test test;
13
14
atexit(check_destruct);
15
pthread_exit((void *)1);
16
return (0);
17
}
18
19