fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / boz_14.f90
blob1e571780eeeee5de5ae33a1cd530b4d8f6a8af25
1 ! { dg-do run }
2 ! { dg-add-options ieee }
4 ! PR fortran/36214
5 ! For BOZ-initialization of floats, the precision used to be wrong sometimes.
7 implicit none
8 real(4) r
9 real(8) rd
10 complex(8) z
11 rd = &
12 real (b'00000000000000000000000000000000&
13 &01000000001010010101001111111101',8)
14 z = &
15 cmplx(b'00000000000000000000000000000000&
16 &01000000001010010101001111111101',0,8)
17 r = 0.
18 if (z /= rd) call abort
19 end