PR libfortran/23262
[official-gcc.git] / gcc / testsuite / gfortran.dg / inquire-complex.f90
blob40d08d4ebb138eb1d5de60fc66394e44b7ef6cd8
1 ! { dg-do run }
2 ! PR 23428: Inquire(iolength) used to give the wrong result.
3 program main
4 implicit none
5 integer s4, s8
7 complex(kind=8) c8
8 complex(kind=4) c4
10 inquire (iolength=s4) c4
11 inquire (iolength=s8) c8
12 if (s4 /= 8 .or. s8 /= 16) call abort
14 end program main