Changeset c248b39 for tests


Ignore:
Timestamp:
Jul 18, 2024, 12:52:39 PM (7 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
f107afe
Parents:
6804f38
Message:

Unlabelled breaks were not targetting the correct enclosing control structures. Also added a test and improved error messages.

Location:
tests
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/.expect/try-ctrl-flow.txt

    r6804f38 rc248b39  
    1 exceptions/try-ctrl-flow.cfa:7:1 error: "break" outside a loop, "switch", or labelled block
    2 exceptions/try-ctrl-flow.cfa:15:1 error: "break" outside a loop, "switch", or labelled block
    3 exceptions/try-ctrl-flow.cfa:23:1 error: "break" outside a loop, "switch", or labelled block
    4 exceptions/try-ctrl-flow.cfa:31:1 error: "continue" target must be an enclosing loop:
     1exceptions/try-ctrl-flow.cfa:7:1 error: "break" outside a loop or "switch"
     2exceptions/try-ctrl-flow.cfa:15:1 error: "break" outside a loop or "switch"
     3exceptions/try-ctrl-flow.cfa:23:1 error: "break" outside a loop or "switch"
     4exceptions/try-ctrl-flow.cfa:31:1 error: "continue" outside a loop
    55exceptions/try-ctrl-flow.cfa:48:1 error: "break" target must be an enclosing control structure: mainLoop
    66exceptions/try-ctrl-flow.cfa:56:1 error: "continue" target must be an enclosing loop: mainLoop
    7 exceptions/try-ctrl-flow.cfa:65:1 error: "break" outside a loop, "switch", or labelled block
    8 exceptions/try-ctrl-flow.cfa:76:1 error: "break" outside a loop, "switch", or labelled block
     7exceptions/try-ctrl-flow.cfa:65:1 error: "break" outside a loop or "switch"
     8exceptions/try-ctrl-flow.cfa:76:1 error: "break" outside a loop or "switch"
    99exceptions/try-ctrl-flow.cfa:87:1 error: "fallthrough" must be enclosed in a "switch" or "choose"
    1010exceptions/try-ctrl-flow.cfa:98:1 error: "break" target must be an enclosing control structure: mainBlock
     
    1313exceptions/try-ctrl-flow.cfa:133:1 error: "return" may not appear in a finally clause
    1414exceptions/try-ctrl-flow.cfa:139:1 error: "return" may not appear in a finally clause
    15 exceptions/try-ctrl-flow.cfa:148:1 error: "break" outside a loop, "switch", or labelled block
     15exceptions/try-ctrl-flow.cfa:148:1 error: "break" outside a loop or "switch"
    1616exceptions/try-ctrl-flow.cfa:159:1 error: "return" may not appear in a try statement with a catch clause
    1717exceptions/try-ctrl-flow.cfa:187:1 error: "return" may not appear in a catchResume clause
Note: See TracChangeset for help on using the changeset viewer.