Changeset ff7ff14a for src/tests


Ignore:
Timestamp:
Jul 31, 2017, 1:58:26 PM (7 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5c80197
Parents:
61e2761
Message:

Discovered a case where the memory management didn't work, stricter tracking of the current exception fixes the issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/except-1.c

    r61e2761 rff7ff14a  
    4646        }
    4747        printf("Part C Complete\n");
     48
     49        try {
     50                try {
     51                        throw 7;
     52                }
     53                catch( 7 ) {
     54                        printf("Caught initial throw.\n");
     55                        try {
     56                                throw 8;
     57                        }
     58                        catch( 8 ) {
     59                                printf("Caught intermediate throw.\n");
     60                        }
     61                        throw;
     62                }
     63        }
     64        catch( 7 ) {
     65                printf("Caught final throw.\n");
     66        }
     67        printf("Part D Complete\n");
    4868}
Note: See TracChangeset for help on using the changeset viewer.