https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109177

--- Comment #4 from Alex Coplan <acoplan at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #3)
> FWIW one way to test against duplicate errors currently is something like:
> 
> void f() __attribute__((unavailable)); // { dg-bogus "is unavailable.*is
> unavailable" }
> // { dg-error "is unavailable" "" { target *-*-* } .-1 }

Thanks, that's helpful. I suppose it would be nice if DejaGnu could be modified
(or perhaps configured) so that errors are only matched at most once, but that
seems unlikely to happen and it would be awkward to coordinate across projects.

Reply via email to