Changeset e1055441 for doc/working/exception/impl
- Timestamp:
- Jun 16, 2017, 4:55:36 PM (7 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:
- 42b0d73
- Parents:
- 365d553c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/working/exception/impl/test-main.c
r365d553c re1055441 142 142 143 143 // Finally Test: 144 void farewell( ) {144 void farewell(bool jump) { 145 145 { 146 146 void farewell_finally1() { … … 150 150 __attribute__((cleanup(farewell_finally1))); 151 151 { 152 printf("walk out of farewell\n"); 153 } 154 } 152 if (jump) { 153 printf("jump out of farewell\n"); 154 goto endoffunction; 155 } else { 156 printf("walk out of farewell\n"); 157 } 158 } 159 } 160 endoffunction: 161 printf("leaving farewell\n"); 155 162 } 156 163 … … 460 467 foo(); printf("\n"); 461 468 alpha(); printf("\n"); 462 farewell(); printf("\n"); 469 farewell(false); printf("\n"); 470 farewell(true); printf("\n"); 463 471 fallback(); printf("\n"); 464 472 terminate_swapped(); printf("\n");
Note: See TracChangeset
for help on using the changeset viewer.