- Timestamp:
- Sep 1, 2017, 9:53:19 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f43df73
- Parents:
- ba2a68b (diff), b0dfbc4 (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. - Location:
- src/tests
- Files:
-
- 3 edited
-
.expect/dtor-early-exit-ERR1.txt (modified) (1 diff)
-
.expect/dtor-early-exit-ERR2.txt (modified) (1 diff)
-
dtor-early-exit.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/dtor-early-exit-ERR1.txt
rba2a68b rdbc733e 1 1 dtor-early-exit.c:142:1 error: jump to label 'L1' crosses initialization of y Branch (Goto) 2 with target: L1 3 with original target: L1 2 4 -
src/tests/.expect/dtor-early-exit-ERR2.txt
rba2a68b rdbc733e 1 1 dtor-early-exit.c:142:1 error: jump to label 'L2' crosses initialization of y Branch (Goto) 2 with target: L2 3 with original target: L2 2 4 -
src/tests/dtor-early-exit.c
rba2a68b rdbc733e 220 220 } 221 221 222 // TODO: implement __label__ and uncomment these lines 223 void computedGoto() { 224 // __label__ bar; 225 void *ptr; 226 ptr = &&foo; 227 goto *ptr; 228 assert(false); 229 foo: ; 230 // void f() { 231 // ptr = &&bar; 232 // goto *ptr; 233 // assert(false); 234 // } 235 // f(); 236 // assert(false); 237 // bar: ; 238 } 239 222 240 int main() { 223 241 sepDisable(sout); … … 229 247 sout | endl; 230 248 h(); 249 250 computedGoto(); 231 251 } 232 252
Note:
See TracChangeset
for help on using the changeset viewer.