main_thread_exit.cpp revision 213155
1/* $FreeBSD: head/tools/regression/pthread/unwind/main_thread_exit.cpp 213155 2010-09-25 04:26:40Z davidxu $ */ 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 10int 11main() 12{ 13 Test test; 14 15 atexit(check_destruct); 16 pthread_exit((void *)1); 17 return (0); 18} 19