Ignore:
Timestamp:
Feb 27, 2025, 3:17:20 PM (13 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master, stuck-waitfor-destruct
Children:
3483185
Parents:
9506c70
Message:

That should be the rest of the warnings generated from the tests themselves. There are a few that will probably need updates to the compiler to remove those warnings and a few more that should be clean except for a known error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/raii/dtor-early-exit.cfa

    r9506c70 rb8b64c34  
    2323};
    2424
    25 // don't want these called
    26 void ?{}(A & a) { assert( false ); }
    2725void ?{}(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:
     27void ?{}(A &) { assert( false ); }
     28void ?{}(A &, const char *, int *) { assert( false ); }
    2929
    3030A ?=?(A & a, A b) {  sout | "assign " | a.name | " " | b.name; return a; }
     
    110110                                if (j == 0) {
    111111                                        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 block
     112                                        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
    113113                                } else if (j == 1) {
    114114                                        sout | "break L2";
    115                                         break;  // destruct y
     115                                        break L2;  // destruct y
    116116                                } else if (i == 1) {
    117117                                        sout | "continue L1";
     
    222222                if(true) continue;
    223223                int t = 0;
     224                (void)t;
    224225        }
    225226}
Note: See TracChangeset for help on using the changeset viewer.