On May 22, 2017, at 9:55 AM, Tom de Vries <tom_devr...@mentor.com> wrote:
> 
> Attached patch adds the missing documentation.
> 
> It looks like this in gccint.info:
> ...
> '{ dg-line LINENUMVAR }'
>     This DejaGnu directive sets the variable LINENUMVAR to the line
>     number of the source line.  The variable LINENUMVAR can then be
>     used in subsequent 'dg-error', 'dg-warning', 'dg-message' and
>     'dg-bogus' directives.  For example:
> 
>          int a;   /* { dg-line first_def_a } */
>          float a; /* { dg-error "conflicting types of" } */
>          /* { dg-message "previous declaration of" "" { target *-*-* } 
> first_def_a } */
> ...
> 
> Note: AFAIK, dg-line does not work in the gnat testsuite. This is similar to 
> PR80219 for relative line numbers. I'm not sure if we should mention this 
> here, or how.
> 
> OK for trunk like this?

Ok.

Reply via email to