Changeset 2853d6f for tests/cast.cfa


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/cast.cfa

    ra6b48f6 r2853d6f  
    44void f() {
    55        char f;
    6         double f;
     6        double f __attribute__((unused));
    77        (int)f;
    88        short f;
     
    1313
    1414//Dummy main
    15 int main( int argc, char const * argv[] ) {
    16     #pragma GCC warning "Compiled"                      // force non-empty .expect file, NO TABS!!!
     15int main() {
     16    printf("done\n");
    1717}
Note: See TracChangeset for help on using the changeset viewer.