summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/inquire-complex.f90
blob: 40d08d4ebb138eb1d5de60fc66394e44b7ef6cd8 (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) call abort

end program main