1*e04b953eSDavid Xu /* $FreeBSD$ */ 2*e04b953eSDavid Xu /* check unwinding for main thread */ 3*e04b953eSDavid Xu 4*e04b953eSDavid Xu #include <pthread.h> 5*e04b953eSDavid Xu #include <stdio.h> 6*e04b953eSDavid Xu #include <stdlib.h> 7*e04b953eSDavid Xu 8*e04b953eSDavid Xu #include "Test.cpp" 9*e04b953eSDavid Xu 10*e04b953eSDavid Xu int 11*e04b953eSDavid Xu main() 12*e04b953eSDavid Xu { 13*e04b953eSDavid Xu Test test; 14*e04b953eSDavid Xu 15*e04b953eSDavid Xu atexit(check_destruct); 16*e04b953eSDavid Xu pthread_exit((void *)1); 17*e04b953eSDavid Xu return (0); 18*e04b953eSDavid Xu } 19