This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: testcase help for fortran-experiments branch
- From: Bernhard Fischer <rep dot dot dot nop at gmail dot com>
- To: "Christopher D. Rickett" <crickett at lanl dot gov>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 13 Jan 2007 11:28:28 +0100
- Subject: Re: testcase help for fortran-experiments branch
- References: <22215.128.165.0.81.1168630577.squirrel@webmail.lanl.gov>
On Fri, Jan 12, 2007 at 12:36:17PM -0700, Christopher D. Rickett wrote:
>hi all,
>
>i believe i've fixed the bug in the bind(c) code that is shown on the wiki
>page for the iso_c_binding features. however, i'm trying to create a
>dejagnu testcase for it and i'm having trouble getting the dg-error tags
>correct. i've attached the testcase and the output from gfortran. any
>help i could get would be appreciated.
the dg-{error,warning} expect a regex, so for
Error: Component 'p' at (1) can not have the POINTER attribute because
it is a member of the BIND(C) derived type 'myfoo' at
! { dg-error "can not have the POINTER attr.*BIND\\(C\\) derived type" }
or the like should do the trick.
HTH,