Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_data_1.f90

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