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: dejagnu help again..


Christopher D. Rickett wrote:
binding_label_tests_10.f03:
! { dg-do compile }
...
binding_label_tests_10_main.f03:
! { dg-do compile }
! { dg-additional-sources binding_label_tests_10.f03 }
...
however, i get the following error:
gfortran: cannot specify -o with -c or -S with multiple files

what's the easiest/best way to get the above code to work? it should fail to compile the *_main.f03 file because it has binding labels that conflict with what's in the module 'x'.

I think you need { dg-do link } in the main file and no dg directive in the additional file so that it doesn't get picked up as a standalone test.


Cheers,
- Tobi



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