summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pack_mask_1.f90
blob: e81d4e76ee21d4126b8a4ea163fea1b6274bd19c (plain)
1
2
3
4
5
6
7
8
9
! { dg-do run }
! PR 32721 - missing conversion for kind=1 and kind=2 masks for pack
program main
  real, dimension(2,2) :: a
  real, dimension(4) :: b
  call random_number(a)
  b = pack(a,logical(a>0,kind=1))
  b = pack(a,logical(a>0,kind=2))
end program main