This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: testcase help for fortran-experiments branch


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]