]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/pthread/unwind/main_thread_exit.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / pthread / unwind / main_thread_exit.cpp
1 /* $FreeBSD$ */
2 /* check unwinding for main thread */
3
4 #include <pthread.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7
8 #include "Test.cpp"
9
10 int
11 main()
12 {
13         Test test;
14
15         atexit(check_destruct);
16         pthread_exit((void *)1);
17         return (0);
18 }