- Timestamp:
- Jan 22, 2020, 3:40:27 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 69e398f
- Parents:
- 5518719
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/except-finally-error.txt
r5518719 r9d6317f 11 11 except-finally-error.cfa:111:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose' 12 12 except-finally-error.cfa:124:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose' 13 except-finally-error.cfa:133:1 error: 'return' may not appear in a finally clause 14 except-finally-error.cfa:139:1 error: 'return' may not appear in a finally clause 15 except-finally-error.cfa:148:1 error: 'break' outside a loop, 'switch', or labelled block -
tests/except-finally-error.cfa
r5518719 r9d6317f 142 142 } 143 143 144 // Checked in the same place, make sure it does't break. 145 void break_in_function() { 146 while (true) { 147 void inner() { 148 break; 149 } 150 } 151 } 152 144 153 void main() { 145 154 // Should not compile.
Note: See TracChangeset
for help on using the changeset viewer.