summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/inquire-complex.f90
blob: 8532f49f4a7cd5822173946336a75a7a34495c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do run }
! PR 23428:  Inquire(iolength) used to give the wrong result.
program main
  implicit none
  integer s4, s8
  
  complex(kind=8) c8
  complex(kind=4) c4
  
  inquire (iolength=s4) c4
  inquire (iolength=s8) c8
  if (s4 /= 8 .or. s8 /= 16) STOP 1

end program main