1 // { dg-do run { target *-*-linux* *-*-gnu* *-*-uclinux* } } 2 // { dg-options "-pthread" } 3 4 #include <pthread.h> 5 #include <cxxabi.h> 6 extern "C" int printf (const char *, ...); 7 main()8int main() 9 { 10 try 11 { 12 pthread_exit (0); 13 } 14 catch (abi::__forced_unwind &) 15 { 16 printf ("caught forced unwind\n"); 17 throw; 18 } 19 catch (...) 20 { 21 printf ("caught ...\n"); 22 return 1; 23 } 24 } 25