summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/int_3.f90
blob: 689beef4b899ed330f5e9714b36391aeb65adeff (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
subroutine bug1
  integer, parameter :: ik1 = 1, ik2 = 2
  integer, parameter :: i = kind(int((0.,0.), kind=ik1))
  integer, parameter :: j = kind(int((0.,0.), kind=ik2))
  integer, parameter :: k = kind(int(0.,      kind=ik1))
  integer, parameter :: l = kind(int(0.,      kind=ik2))
  integer, parameter :: m = kind(int(0,       kind=ik1))
  integer, parameter :: n = kind(int(0,       kind=ik2))
end subroutine bug1