1: /* One RAISE inside one TRY. */ 3: #include <stdio.h> 5: #include "exception-local.h" 7: int 8: main (int argc, char **argv) 9: { 10: int i, j; 12: try 13: { 14: i = 100; 15: j = 200; 16: if (i / j == 0) 17: { 18: throw (0); 19: } 20: } 21: except 22: { 23: on (0) 24: { 25: printf ("Exception handled. OK.\n"); 26: exit (0); 27: } 28: } 30: exit (1); 31: }