Changes in src/tests/except-2.c [fcc88a4:406a6e6]
- File:
-
- 1 edited
-
src/tests/except-2.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/except-2.c
rfcc88a4 r406a6e6 80 80 } 81 81 num_error_vtable _num_error_vtable_instance @= { 82 & INSTANCE(BASE_EXCEPT),82 &___cfaehm__base_exception_t_vtable_instance, 83 83 sizeof(num_error), ?{}, ^?{}, 84 84 num_error_msg, num_error_code … … 91 91 yin black; 92 92 throw (BASE_EXCEPT *)&black; 93 } catch ( yin * error ) {93 } catch( yin * error ) { 94 94 printf("throw yin caught.\n"); 95 95 } … … 99 99 throwResume (BASE_EXCEPT *)&white; 100 100 printf("> throwResume returned.\n"); 101 } catchResume ( yang * error ) {101 } catchResume( yang * error ) { 102 102 printf("throwResume yang caught <"); 103 103 } 104 104 105 /* Conditional catches are still a work in progress. 105 106 try { 106 107 num_error x = { 2 }; 107 throw ( BASE_EXCEPT*)&x;108 throw (struct exception_t *)&x; 108 109 } 109 catch (num_error * error ; 3 == error->virtual_table->code( error) ) {110 printf("exception at %p\n", error );110 catch (num_error * error0 ; 3 == error0->virtual_table->code( error0 ) ) { 111 printf("exception at %p\n", error0 ); 111 112 printf("Should not be printed.\n"); 112 113 } 113 catch (num_error * error ; 2 == error->virtual_table->code( error) ) {114 catch (num_error * error1 ; 2 == error1->virtual_table->code( error1 ) ) { 114 115 printf("Should be printed.\n"); 115 } 116 }*/ 116 117 } 117 118
Note:
See TracChangeset
for help on using the changeset viewer.