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