https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80221
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
A more robust solution that wouldn't have to subject to a limit would be to add
an annotation to dg-{error,message,warning} to indicate that the next
dg-{bogus,error,message,warning} directive is meant to be applied to the same
line as the current one. For instance, something like this:
foobar;
/* { dg-warning "warning for foobar" continue }
{ dg-warning "another warning for foobar" continue }
{ dg-error "error for foobar" } */
(For brevity I omitted the comment and the { target ... } parts of the
directives above. It would also be nice to be able to do away with those when
they're not necessary.)