Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08

raw
1 ! { dg-do run }
2
3 program test_stopped_images_2
4 implicit none
5
6 integer, allocatable :: si(:)
7 integer(kind=1), allocatable :: ssi(:)
8
9 si = stopped_images()
10 if (size(si) > 0) error stop "stopped_images result shall be empty array"
11 ssi = stopped_images(KIND=1)
12 if (size(ssi) > 0) error stop "stopped_images result shall be empty array"
13 ssi = stopped_images(KIND=8)
14 if (size(ssi) > 0) error stop "stopped_images result shall be empty array"
15
16 end program test_stopped_images_2
17