Changeset 70ac8d0 for tests/exceptions
- Timestamp:
- May 12, 2020, 4:55:42 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 068a202, f2d05e9
- Parents:
- 5c581cc (diff), 730f4f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/exceptions
- Files:
-
- 5 edited
-
.expect/resume.txt (modified) (1 diff)
-
.expect/terminate.txt (modified) (1 diff)
-
data-except.cfa (modified) (1 diff)
-
resume.cfa (modified) (1 diff)
-
terminate.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/.expect/resume.txt
r5c581cc r70ac8d0 4 4 end of try clause 5 5 Exiting: simple try clause 6 7 catch-all 6 8 7 9 throwing child exception -
tests/exceptions/.expect/terminate.txt
r5c581cc r70ac8d0 3 3 simple catch 4 4 Exiting: simple catch clause 5 6 catch-all 5 7 6 8 throwing child exception -
tests/exceptions/data-except.cfa
r5c581cc r70ac8d0 12 12 this.first = first; 13 13 this.second = second; 14 }15 16 void copy(paired * this, paired * other) {17 *this = *other;18 14 } 19 15 -
tests/exceptions/resume.cfa
r5c581cc r70ac8d0 19 19 loud_exit a = "simple catch clause"; 20 20 printf("simple catch\n"); 21 } 22 printf("\n"); 23 24 // Throw catch-all test. 25 try { 26 throwResume &(zen){}; 27 } catchResume (exception_t * error) { 28 printf("catch-all\n"); 21 29 } 22 30 printf("\n"); -
tests/exceptions/terminate.cfa
r5c581cc r70ac8d0 17 17 printf("end of try clause\n"); 18 18 } catch (zen * error) { 19 loud_exit a = "simple catch clause";19 loud_exit a = "simple catch clause"; 20 20 printf("simple catch\n"); 21 } 22 printf("\n"); 23 24 // Throw catch-all test. 25 try { 26 throw &(zen){}; 27 } catch (exception_t * error) { 28 printf("catch-all\n"); 21 29 } 22 30 printf("\n");
Note:
See TracChangeset
for help on using the changeset viewer.