source: tests/.expect/except-finally-error.txt @ 69e398f

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 69e398f was 9d6317f, checked in by Andrew Beach <ajbeach@…>, 5 years ago

Added checks for returning from a finally clause. And breaking from a nested function.

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[d62806c]1except-finally-error.cfa:7:1 error: 'break' outside a loop, 'switch', or labelled block
[96f5b30]2except-finally-error.cfa:15:1 error: 'break' outside a loop, 'switch', or labelled block
3except-finally-error.cfa:23:1 error: 'break' outside a loop, 'switch', or labelled block
4except-finally-error.cfa:31:1 error: 'continue' target must be an enclosing loop:
5except-finally-error.cfa:48:1 error: 'break' target must be an enclosing control structure: mainLoop
6except-finally-error.cfa:56:1 error: 'continue' target must be an enclosing loop: mainLoop
7except-finally-error.cfa:65:1 error: 'break' outside a loop, 'switch', or labelled block
8except-finally-error.cfa:76:1 error: 'break' outside a loop, 'switch', or labelled block
9except-finally-error.cfa:87:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
10except-finally-error.cfa:98:1 error: 'break' target must be an enclosing control structure: mainBlock
11except-finally-error.cfa:111:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
12except-finally-error.cfa:124:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
[9d6317f]13except-finally-error.cfa:133:1 error: 'return' may not appear in a finally clause
14except-finally-error.cfa:139:1 error: 'return' may not appear in a finally clause
15except-finally-error.cfa:148:1 error: 'break' outside a loop, 'switch', or labelled block
Note: See TracBrowser for help on using the repository browser.