AVR: tree-optimization/115307 - Work around isinf bloat from early passes.
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_image_status_1.f08
blobf90fe46c20f3e4af95cbecc33120460d2e91d3cc
1 ! { dg-do run }
2 ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" }
3 ! { dg-additional-options "-latomic" { target libatomic_available } }
5 program test_image_status_1
6   use iso_fortran_env , only : STAT_STOPPED_IMAGE
7   implicit none
9   if (image_status(1) /= 0) error stop "image_status(1) should not fail"
10   if (image_status(42) /= STAT_STOPPED_IMAGE) error stop "image_status(42) should report stopped image"
12 end program test_image_status_1
14 ! { dg-final { scan-tree-dump-times "_gfortran_caf_image_status \\\(1, .+\\\)" 1 "original" } }
15 ! { dg-final { scan-tree-dump-times "_gfortran_caf_image_status \\\(42, .+\\\)" 1 "original" } }