summaryrefslogtreecommitdiff
path: root/tools/regression/pthread/unwind/main_thread_exit.cpp
blob: c3ee859a5f0f10b03e8754fbfb6e76121ba5a24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* check unwinding for main thread */

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>

#include "Test.cpp"

int
main()
{
	Test test;

	atexit(check_destruct);
	pthread_exit((void *)1);
	return (0);
}