Hi Joseph,

On Wed, Nov 12, 2025 at 10:03:09PM +0000, Joseph Myers wrote:
> >     _Maxof (static int);  /* { dg-error "to something not a type" } */
> > 
> > trigger excess errors that I don't know how to deal with.
> > 
> >     c.c:12:16: error: invalid application of ‘_Maxof’ to something not a 
> > type
> >        12 |         _Maxof(static int);
> >           |                ^~~~~~
> >     c.c:12:16: error: expected ‘)’ before ‘static’
> >        12 |         _Maxof(static int);
> >           |               ~^~~~~~
> >           |                )
> 
> You can have multiple dg-error directives referencing the same line.  E.g.
> 
> /* { dg-error "expected" "syntax error" { target *-*-* } .-1 } */
> 
> on the next line (here "expected" is the regular expression to test for, 
> "syntax error" is the description that appears in the test name after PASS 
> or FAIL - each dg-* test for a given line needs to have a distinct 
> description to avoid duplicate lines in the .sum file - and ".-1" is a 
> relative line number).

Thanks!  Out of curiosity, what's '{ target *-*-* }'?


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

Attachment: signature.asc
Description: PGP signature

Reply via email to