Ignore:
Timestamp:
Feb 5, 2025, 1:45:29 PM (8 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/array-collections/.expect/dimexpr-match-c-ERRS.x86.txt

    r92aeae1 rd3d54b3  
    208208  Address of:
    209209    Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    210     Sizeof Expression on: instance of type dim7 (not function type)
    211     ... with resolved type:
    212       unsigned long int
    213   ... to:
    214     unsigned int
    215   ... with resolved type:
    216     unsigned int
    217 array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    218   Address of:
    219     Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    220     Sizeof Expression on: instance of type dim7 (not function type)
    221     ... with resolved type:
    222       unsigned long int
    223   ... to:
    224     unsigned int
    225   ... with resolved type:
    226     unsigned int
    227 array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    228   Address of:
    229     Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    230     Sizeof Expression on: instance of type dim7 (not function type)
    231     ... with resolved type:
    232       unsigned long int
    233   ... to:
    234     unsigned int
    235   ... with resolved type:
    236     unsigned int
    237 array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    238   Address of:
    239     Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    240     Sizeof Expression on: instance of type dim7 (not function type)
    241     ... with resolved type:
    242       unsigned long int
    243   ... to:
    244     unsigned int
    245   ... with resolved type:
    246     unsigned int
    247 array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    248   Address of:
    249     Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    250     Sizeof Expression on: instance of type dim7 (not function type)
    251     ... with resolved type:
    252       unsigned long int
    253   ... to:
    254     unsigned int
    255   ... with resolved type:
    256     unsigned int
    257 array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    258   Address of:
    259     Name: a  InitAlternative: pointer to array of float with dimension of Generated Cast of:
    260210    Variable Expression: enu7: const instance of enum __anonymous0 with body
    261211    ... with resolved type:
     
    307257array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
    308258  Address of:
     259    Name: a  InitAlternative: pointer to array of float with dimension of Sizeof Expression on: instance of type dim7 (not function type)
     260  ... with resolved type:
     261    unsigned int
     262array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
     263  Address of:
     264    Name: a  InitAlternative: pointer to array of float with dimension of Sizeof Expression on: instance of type dim7 (not function type)
     265  ... with resolved type:
     266    unsigned int
     267array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
     268  Address of:
     269    Name: a  InitAlternative: pointer to array of float with dimension of Sizeof Expression on: instance of type dim7 (not function type)
     270  ... with resolved type:
     271    unsigned int
     272array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
     273  Address of:
     274    Name: a  InitAlternative: pointer to array of float with dimension of Sizeof Expression on: instance of type dim7 (not function type)
     275  ... with resolved type:
     276    unsigned int
     277array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
     278  Address of:
     279    Name: a  InitAlternative: pointer to array of float with dimension of Sizeof Expression on: instance of type dim7 (not function type)
     280  ... with resolved type:
     281    unsigned int
     282array-collections/dimexpr-match-c.cfa:49:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression
     283  Address of:
    309284    Name: a  InitAlternative: pointer to variable length array of float with dimension of Generated Cast of:
    310285    Variable Expression: _array_dim16: const unsigned int
Note: See TracChangeset for help on using the changeset viewer.