diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/module_md5_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/module_md5_1.f90 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/module_md5_1.f90 b/gcc/testsuite/gfortran.dg/module_md5_1.f90 new file mode 100644 index 000000000..e725b4b76 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/module_md5_1.f90 @@ -0,0 +1,14 @@ +! Check that we can write a module file, that it has a correct MD5 sum, +! and that we can read it back. +! +! { dg-do compile } +module foo + integer(kind=4), parameter :: pi = 3_4 +end module foo + +program test + use foo + print *, pi +end program test +! { dg-final { scan-module "foo" "MD5:5632bcd379cf023bf7e663e91d52fa12" } } +! { dg-final { cleanup-modules "foo" } } |