1! RUN: %python %S/test_errors.py %s %flang_fc1 2! This test checks the acceptance of standard-conforming notify-wait-stmts based 3! on the statement specification in section 11.6 of the Fortran 2023 standard. 4 5program test_notify_wait 6 use iso_fortran_env, only: notify_type 7 implicit none 8 9 type(notify_type) :: notify_var[*] 10 integer :: count, count_array(1), sync_status, coindexed_integer[*] 11 character(len=128) :: error_message 12 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_wait 27