PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / pack_mask_1.f90
blobe81d4e76ee21d4126b8a4ea163fea1b6274bd19c
1 ! { dg-do run }
2 ! PR 32721 - missing conversion for kind=1 and kind=2 masks for pack
3 program main
4 real, dimension(2,2) :: a
5 real, dimension(4) :: b
6 call random_number(a)
7 b = pack(a,logical(a>0,kind=1))
8 b = pack(a,logical(a>0,kind=2))
9 end program main