Changeset b8b64c34 for tests/raii/dtor-early-exit.cfa
- Timestamp:
- Feb 27, 2025, 3:17:20 PM (13 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 3483185
- Parents:
- 9506c70
- File:
-
- 1 edited
-
tests/raii/dtor-early-exit.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/raii/dtor-early-exit.cfa
r9506c70 rb8b64c34 23 23 }; 24 24 25 // don't want these called26 void ?{}(A & a) { assert( false ); }27 25 void ?{}(A & a, const char * name) { a.name = name; sout | "construct " | name; a.x = (int*)malloc(); } 28 void ?{}(A & a, const char * name, int * ptr) { assert( false ); } 26 // Don't want these called: 27 void ?{}(A &) { assert( false ); } 28 void ?{}(A &, const char *, int *) { assert( false ); } 29 29 30 30 A ?=?(A & a, A b) { sout | "assign " | a.name | " " | b.name; return a; } … … 110 110 if (j == 0) { 111 111 sout | "continue L2"; 112 continue ;// destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block112 continue L2; // destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block 113 113 } else if (j == 1) { 114 114 sout | "break L2"; 115 break ; // destruct y115 break L2; // destruct y 116 116 } else if (i == 1) { 117 117 sout | "continue L1"; … … 222 222 if(true) continue; 223 223 int t = 0; 224 (void)t; 224 225 } 225 226 }
Note:
See TracChangeset
for help on using the changeset viewer.