Ignore:
Timestamp:
Jan 2, 2025, 7:00:01 PM (3 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
656c8ac
Parents:
a6b48f6
Message:

Remove uses of warnings to show test success. Eliminate simple causes of other warnings from affected tests and remove the result from WFLAG_OPT_LAX.

Many affected tests also formerly used -fsyntax-only to avoid errors at later compilation stages, or at runtime. Repair such tests to actually work though runtime, and remove them from SYNTAX_ONLY_CODE.

Group tests listed under WFLAGS_OPT according to why they should receive lax treatment. Add reason WFLGAS_OPT_LAX_EXPECT_WARN and give the original list reason WFLGAS_OPT_LAX_TO_INVESTIGATE.

Tests whose purpose is to show a warning are listed as both SYNTAX_ONLY_CODE (so that the warning is the output) and WFLGAS_OPT_LAX_EXPECT_WARN (to document this fact).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/quasiKeyword.cfa

    ra6b48f6 r2853d6f  
    1313
    1414exception E {};
     15vtable(E) E_vt;
    1516
    16 void catch( int i ) {}
    17 void recover( int i ) {}
    18 void catchResume( int i ) {}
    19 void fixup( int i ) {}
    20 void finally( int i ) {}
     17void catch( int i )       { (void) i; }
     18void recover( int i )     { (void) i; }
     19void catchResume( int i ) { (void) i; }
     20void fixup( int i )       { (void) i; }
     21void finally( int i )     { (void) i; }
    2122
    22 int main(int argc, char const *argv[]) {
     23int main() {
    2324        int catch, recover, catchResume, fixup, finally;
    2425        try {
     
    3334                finally = 3;
    3435                finally( finally );
    35                 throw (E){};
    36                 report (E){};
    37                 throwResume (E){};
     36                throw (E){ & E_vt };
     37                report (E){ & E_vt };
     38                throwResume (E){ & E_vt };
    3839        } catch ( E * ) {
    3940        } recover ( E * ) {                                                                     // same as catch
     
    5051        else catch = 3;
    5152
    52     #pragma GCC warning "Compiled"                      // force non-empty .expect file, NO TABS!!!
     53        printf("done\n");
    5354}
Note: See TracChangeset for help on using the changeset viewer.