On Wed, 12 Nov 2025, Alejandro Colomar wrote:
> > 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 *-*-* }'?
That's the target selector saying what configurations this dg-error
assertion applies for.
--
Joseph S. Myers
[email protected]