summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/module_md5_1.f90
blob: 88002c204bfd2c4c324820378d86baa4e0afa0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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:9c43cf4d713824ec6894b83250720e68" } }
! { dg-final { cleanup-modules "foo" } }