brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 83a58ba Raw
27 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc12! This test checks the acceptance of standard-conforming notify-wait-stmts based3! on the statement specification in section 11.6 of the Fortran 2023 standard.4 5program test_notify_wait6  use iso_fortran_env, only: notify_type7  implicit none8 9  type(notify_type) :: notify_var[*]10  integer :: count, count_array(1), sync_status, coindexed_integer[*]11  character(len=128) :: error_message12 13  !_______________________ standard-conforming statements ___________________________14 15  notify wait(notify_var)16  notify wait(notify_var, until_count=count)17  notify wait(notify_var, until_count=count_array(1))18  notify wait(notify_var, until_count=coindexed_integer[1])19  notify wait(notify_var, stat=sync_status)20  notify wait(notify_var, until_count=count, stat=sync_status)21  notify wait(notify_var, errmsg=error_message)22  notify wait(notify_var, until_count=count, errmsg=error_message)23  notify wait(notify_var, stat=sync_status, errmsg=error_message)24  notify wait(notify_var, until_count=count, stat=sync_status, errmsg=error_message)25 26end program test_notify_wait27