summaryrefslogtreecommitdiffstats
path: root/tools/regression/pthread/unwind/main_thread_exit.cpp
blob: 182c194b07af925ca9e575847ca9310dff7875d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* $FreeBSD$ */
/* 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);
}
OpenPOWER on IntegriCloud