Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/coarray_image_status_1.f08 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" } ! { dg-additional-options "-latomic" { target libatomic_available } } program test_image_status_1 use iso_fortran_env , only : STAT_STOPPED_IMAGE implicit none if (image_status(1) /= 0) error stop "image_status(1) should not fail" if (image_status(42) /= STAT_STOPPED_IMAGE) error stop "image_status(42) should report stopped image" end program test_image_status_1 ! { dg-final { scan-tree-dump-times "_gfortran_caf_image_status \\\(1, .+\\\)" 1 "original" } } ! { dg-final { scan-tree-dump-times "_gfortran_caf_image_status \\\(42, .+\\\)" 1 "original" } }