Changeset 540b275
- Timestamp:
 - Jul 7, 2016, 11:28:12 AM (9 years ago)
 - Branches:
 - ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
 - Children:
 - 0b4d93ab
 - Parents:
 - a17e7b8
 - Location:
 - src/tests
 - Files:
 - 
      
- 4 edited
 
- 
          
  .expect/dtor-early-exit.txt (modified) (1 diff)
 - 
          
  dtor-early-exit.c (modified) (2 diffs)
 - 
          
  init_once.c (modified) (1 diff)
 - 
          
  labelledExit.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/tests/.expect/dtor-early-exit.txt
ra17e7b8 r540b275 183 183 break L1 184 184 destruct x 185 186 construct w 187 construct v 188 break L3 189 destruct v 190 destruct w 185 191 186 192 h  - 
      
src/tests/dtor-early-exit.c
ra17e7b8 r540b275 110 110 } 111 111 } 112 } 113 } 114 115 sout | endl; 116 L3: if( 3 ) { 117 A w = { "w" }; 118 if( 4 ) { 119 A v = { "v" }; 120 sout | "break L3" | endl; 121 break L3; 112 122 } 113 123 } … … 205 215 h(); 206 216 } 207  - 
      
src/tests/init_once.c
ra17e7b8 r540b275 160 160 } 161 161 162 // labeled break/continue with if 163 LL1: for (int k = 0; k < 10; k++) { 164 init_once x; 165 init_once y = x; 166 LL2: for (int i = 0; i < 10; i++){ 167 init_once x; 168 init_once y = x; 169 LL3: if( i < 5) { 170 init_once x; 171 init_once y = x; 162 172 173 if (i == 0) continue LL2; 174 if (i == 2) break LL3; 175 if (i == 3) break LL2; 176 if (i == 4) continue LL1; 177 } else { 178 if (i == 9) break LL1; 179 // if (i == 5) goto ; 180 } 181 } 182 } 163 183 } 164 184  - 
      
src/tests/labelledExit.c
ra17e7b8 r540b275 130 130 // } 131 131 132 #if 1133 132 Q: if ( i > 5 ) { 134 133 i += 1; 135 // break Q; 136 } else 134 break Q; 135 } 136 else 137 137 i += 1; 138 #endif 138 139 139 } 140 140  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.