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/attr-priority.cfa

    ra6b48f6 r2853d6f  
    1 // Although we are testing the attribute priority checks, we also have a
    2 // resolver error to force the expect to compare against the compiler output.
     1// Is compiled -fsyntax-only, to make the test's "output" be the warnings from cfa-cpp.
     2
    33
    44int * store = 0p;
     
    66__attribute__(( constructor(150) ))
    77void ctor_store(void) {
    8         store = malloc();
     8        store = (int*)malloc(200);
    99}
    1010
     
    1414        store = 0;
    1515}
    16 
    17 int main(void) {
    18         return 0;
    19 }
Note: See TracChangeset for help on using the changeset viewer.