2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_double_reuse.f90
blob04e851220a9ae9ff0242ffec7ad9a225b0951aac
1 ! { dg-do run }
2 ! Test of fix for PR18878
4 ! Based on example in PR by Steve Kargl
6 module a
7 integer, parameter :: b = kind(1.d0)
8 real(b) :: z
9 end module a
10 program d
11 use a, only : e => b, f => b, u => z, v => z
12 real(e) x
13 real(f) y
14 x = 1.e0_e
15 y = 1.e0_f
16 u = 99.0
17 if (kind(x).ne.kind(y)) call abort ()
18 if (v.ne.u) call abort ()
19 end program d