question about cleaning modules after a regression test

Brooks Moses brooks.moses@codesourcery.com
Sun May 6 02:50:00 GMT 2007


Dominique Dhumieres wrote:
> Does anyone understand why the following code
> 
> ! { dg-do compile }
> MODULE input_cp2k_motion
>   IMPLICIT NONE
>   interface
>     SUBROUTINE keyword_create(variants)
>       CHARACTER(len=*), DIMENSION(:), &
>       INTENT(in)                   :: variants
>     end subroutine
>   end interface
> CONTAINS
>   SUBROUTINE create_neb_section()
>     CALL keyword_create(variants=(/"K"/))
>   END SUBROUTINE create_neb_section
> END MODULE input_cp2k_motion
> ! { dg-final { cleanup-modules "input_cp2k_motion" } }
> 
> does not clean input_cp2k_motion.mod after a regression test?
[...]
> PS it is a modification of gfortran.fortran-torture/compile/pr30147.f90

That "PS" is why, if you're running this file in the fortran-torture 
directory.  The files in that directory don't currently get the dejagnu 
macros run on them, for some reason.

- Brooks



More information about the Fortran mailing list