#include #include #include void foo() { try { ::printf("Hello "); throw std::exception(); } catch (std::exception e) { ::printf(" World!\n"); } }