PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / boz_14.f90
blob58e27cd7f41f2fb05fc45c3195b192afc85e5ea6
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) STOP 1
19 end