1 2#include <stdio.h> 3void bar() 4{ 5 throw "wow"; 6} 7 8extern "C" void foo(); 9 10void foo() 11{ 12 try { 13 bar(); 14 } 15 catch(...) { 16 //fprintf(stderr, "caught\n"); 17 } 18 19 20} 21