Changes in tests/labelledExit.cfa [dc8511c:e53e5aa]
- File:
-
- 1 edited
-
tests/labelledExit.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/labelledExit.cfa
rdc8511c re53e5aa 10 10 // Created On : Wed Aug 10 07:29:39 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Nov 6 17:57:42 201813 // Update Count : 412 // Last Modified On : Wed Feb 5 16:49:48 2020 13 // Update Count : 9 14 14 // 15 15 … … 136 136 } 137 137 138 // all nested control options, labelled exits 139 140 Comp: { 141 Try: try { 142 For: for ( ;; ) { 143 While: while ( true ) { 144 Do: do { 145 If: if ( true ) { 146 Switch2: switch ( 3 ) { 147 case 3: 148 break Try; 149 break Comp; 150 break For; continue For; 151 break While; continue While; 152 break Do; continue Do; 153 break If; 154 break Switch2; 155 } // switch 156 } // if 157 } while ( true ); 158 } // while 159 } // for 160 } finally {} // always executed 161 } // compound 162 138 163 // computed goto 139 //{140 //void *array[] = { &&foo, &&bar, &&hack };141 //foo: bar: hack:142 //&&foo;143 //&&bar;144 //goto *array[i];145 //}164 { 165 void *array[] = { &&foo, &&bar, &&hack }; 166 foo: bar: hack: 167 &&foo; 168 &&bar; 169 goto *array[i]; 170 } 146 171 147 172 Q: if ( i > 5 ) {
Note:
See TracChangeset
for help on using the changeset viewer.