Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/cancel/coroutine.cfa

    recfd758 rafe2939  
    44#include <exception.hfa>
    55
    6 EHM_EXCEPTION(internal_error)();
    7 EHM_VIRTUAL_TABLE(internal_error, internal_vt);
     6TRIVIAL_EXCEPTION(internal_error);
    87
    98coroutine WillCancel {};
     
    1514void main(WillCancel & wc) {
    1615        printf("1");
    17         cancel_stack((internal_error){&internal_vt});
     16        cancel_stack((internal_error){});
    1817        printf("!");
    1918}
     
    2524                resume(cancel);
    2625                printf("4");
    27         } catchResume (SomeCoroutineCancelled * error) {
     26        } catchResume (CoroutineCancelled(WillCancel) * error) {
    2827                printf("2");
    2928                if ((virtual internal_error *)error->the_exception) {
Note: See TracChangeset for help on using the changeset viewer.