Skip to content

Commit 7e1054c

Browse files
committed
Added first testcase.
1 parent 83c3745 commit 7e1054c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
program test_image_status_1
2+
use iso_fortran_env , only : STAT_STOPPED_IMAGE
3+
implicit none
4+
integer :: i
5+
6+
associate(np => num_images(), me => this_image())
7+
do i= 1, np
8+
if (image_status(i) /= 0) error stop "image_status(i) should not fail"
9+
end do
10+
11+
sync all
12+
if (me == 1) print *,"Test passed."
13+
end associate
14+
15+
end program test_image_status_1
16+

0 commit comments

Comments
 (0)