Retro68/gcc/gcc/testsuite/gfortran.dg/coarray_data_1.f90
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

13 lines
372 B
Fortran

! { dg-do run }
! { dg-options "-fcoarray=lib -lcaf_single " }
! { dg-additional-options "-latomic" { target libatomic_available } }
! PR 71066 - this used to ICE
program p
real :: a(2,2)[*]
integer :: b(2,2)[*]
data a /4*0.0/
data b /1234, 2345, 3456, 4567/
if (any (a /= 0.0)) stop 1
if (any (b /= reshape([1234, 2345, 3456, 4567],[2,2]))) stop 2
end