Changeset d3d54b3 for tests/nowarn


Ignore:
Timestamp:
Feb 5, 2025, 1:45:29 PM (3 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
ab94c37
Parents:
92aeae1
Message:

Eliminate warnings due to sizeof returning type inconsistent with %zu. Fix #269.

Test

nowarn/printf-sizeof

: Activate direct test of the bug.

Tests

alloc-ERROR
extension
array-collections/dimexpr-match-c-ERRS

: Accommodate incidental changes in error-message text or generated code.

Location:
tests/nowarn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/nowarn/.expect/printf-sizeof.txt

    r92aeae1 rd3d54b3  
    221
    3310
     40 1 2 3 4 5 6 7 8 9
  • TabularUnified tests/nowarn/printf-sizeof.cfa

    r92aeae1 rd3d54b3  
    1111forall( [N] )
    1212void mary( array(char, N) & ) {
    13     printf( "%zu\n", N );   
    14   #if defined TRY_TRAC_269_REMAINDER
    15         for ( i; N ) {
     13    printf( "%zu\n", N );
     14    for ( i; N ) {
    1615        if (i > 0) printf(" ");
    17         printf( "%zu", i); // FIX ME: i still getting type long unsigned int on -m32
    18         }
     16        printf( "%zu", i);
     17    }
    1918    printf("\n");
    20   #endif
    2119}
    2220
Note: See TracChangeset for help on using the changeset viewer.