1 2 3 4 5 6 7 8 9 10
void testfunc() { return throw sizeof 42; } int main() { try { testfunc(); } catch(...) { std::cout << "exception" << std::endl; } }
1
exception