Ignore:
Timestamp:
Aug 22, 2024, 2:32:14 PM (6 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
cc0aa8c
Parents:
df2e00f
Message:

update error message for parameter default-initialization in function-pointer declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/opt-params.cfa

    rdf2e00f r790f251  
    99// This is a slightly weird way to do it, but it let's us try all the cases
    1010// before any of the errors cause compilation to stop.
     11
    1112void bad_cases(
    12         int (*fee)( int i = 10 ),
    13         int (*fie)( int = 10 ),
    14         void feo( int (*p)( int = 10 ) ),
    15         void fum( int (*)( int = 10 ) )
     13        int (*f1)( int i = 10, int j = 5 ),
     14        int (*f2)( int = 10 ),
     15        void f3( int (*p)( int = 10 ) ),
     16        void f4( int (*)( int = 10 ) ),
     17        void f5( int (*p)( int i = 10 ) ),
     18        void f6( int (*)( int i = 10 ) )
    1619);
     20
Note: See TracChangeset for help on using the changeset viewer.