Index: example.c ================================================================== --- example.c +++ example.c @@ -37,14 +37,20 @@ try { puts("try2"); } catch (ex) { puts("this should not be called"); } + + try { + throw(7); + } catch (ex) { + rethrow; + } throw(5); } catch (ex) { - printf("caught %d (should be 5)\n", ex); + printf("caught %d (should be 7)\n", ex); } try { throw(1); return 1;