libtrycatch  Diff

Differences From Artifact [2d61a6f1fd]:

To Artifact [288ea4fa49]:


35
36
37
38
39
40
41






42
43
44
45

46
47
48
49
50
51
52
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

51
52
53
54
55
56
57
58







+
+
+
+
+
+



-
+







		puts("try1");

		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;
	} catch (ex) {
	}