Changes in tests/exceptions/defaults.cfa [381132b:8ad5752]
- File:
-
- 1 edited
-
tests/exceptions/defaults.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/defaults.cfa
r381132b r8ad5752 30 30 throwResume (log_message){(char *)"Should be printed.\n"}; 31 31 } catchResume (log_message * this) { 32 printf( "%s",this->virtual_table->msg(this));32 printf(this->virtual_table->msg(this)); 33 33 } 34 34 // But we don't have to: … … 69 69 } 70 70 71 TRIVIAL_EXCEPTION(second);72 73 void cross_test(void) {74 void defaultTerminationHandler(first &) {75 printf("cross terminate default\n");76 throw (second){};77 }78 void defaultResumptionHandler(first &) {79 printf("cross resume default\n");80 throwResume (second){};81 }82 try {83 printf("cross terminate throw\n");84 throw (first){};85 } catch (second *) {86 printf("cross terminate catch\n");87 }88 try {89 printf("cross resume throw\n");90 throwResume (first){};91 } catchResume (second *) {92 printf("cross resume catch\n");93 }94 }95 96 71 int main(int argc, char * argv[]) { 97 72 log_test(); 98 73 jump_test(); 99 74 unhandled_test(); 100 cross_test();101 75 }
Note:
See TracChangeset
for help on using the changeset viewer.