Changeset e276be6 for tests/exceptions


Ignore:
Timestamp:
Apr 6, 2020, 8:50:45 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9d5d01f
Parents:
23ecea4 (diff), f1b6671 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests/exceptions
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/.expect/interact.txt

    r23ecea4 re276be6  
    1414resumption catch, will terminate
    1515inner termination catch
     16
     17throwing resume moon
     18resumption moon catch, will terminate
     19termination catch
     20throwing resume star
     21resumption star catch
  • tests/exceptions/.expect/resume.txt

    r23ecea4 re276be6  
    2525caught second exception
    2626recaught first exception
     27
     28inner catch
     29inner catch
     30outer catch
  • tests/exceptions/.expect/terminate.txt

    r23ecea4 re276be6  
    2424caught second exception
    2525recaught first exception
     26
     27inner catch
     28outer catch
  • tests/exceptions/interact.cfa

    r23ecea4 re276be6  
    8686                printf("outer terminate catch (error)\n");
    8787        }
    88 #if 0
    8988        printf("\n");
    9089
     
    111110                printf("outermost catch (error)\n");
    112111        }
    113 #endif
    114112}
  • tests/exceptions/resume.cfa

    r23ecea4 re276be6  
    9999                printf("caught second exception (bad location)\n");
    100100        }
     101        printf("\n");
     102
     103        // Check successive operations.
     104        try {
     105                try {
     106                        THROW_RESUME(&(zen){});
     107                        THROW_RESUME(&(zen){});
     108                } catchResume (zen *) {
     109                        printf("inner catch\n");
     110                }
     111                THROW_RESUME(&(zen){});
     112        } catchResume (zen *) {
     113                printf("outer catch\n");
     114        }
    101115}
  • tests/exceptions/terminate.cfa

    r23ecea4 re276be6  
    9999                printf("caught second exception (bad location)\n");
    100100        }
     101        printf("\n");
     102
     103        // Check successive operations.
     104        try {
     105                try {
     106                        THROW(&(zen){});
     107                        THROW(&(zen){});
     108                } catch (zen *) {
     109                        printf("inner catch\n");
     110                }
     111                THROW(&(zen){});
     112        } catch (zen *) {
     113                printf("outer catch\n");
     114        }
    101115}
Note: See TracChangeset for help on using the changeset viewer.