blob: c33a2caa3d13e8844e2c7289237237a45b251d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
! { dg-do compile }
!
! Fixes PR38171 a regression caused by the fix for PR37706.
!
! Contributed by Scot Breitenfeld <brtnfld@hdfgroup.org>
!
MODULE H5GLOBAL
IMPLICIT NONE
INTEGER :: H5P_flags
INTEGER :: H5P_DEFAULT_F
EQUIVALENCE(H5P_flags, H5P_DEFAULT_F)
END MODULE H5GLOBAL
MODULE HDF5
USE H5GLOBAL
END MODULE HDF5
PROGRAM fortranlibtest
USE HDF5
IMPLICIT NONE
INTEGER :: ii
ii = H5P_DEFAULT_F
END PROGRAM fortranlibtest
! { dg-final { cleanup-modules "H5GLOBAL HDF5" } }
|