[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Semantics / notifywait01.f90
blob83a58ba79288122f991927f1cd291eb005757ba1
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.
5 program test_notify_wait
6 use iso_fortran_env, only: notify_type
7 implicit none
9 type(notify_type) :: notify_var[*]
10 integer :: count, count_array(1), sync_status, coindexed_integer[*]
11 character(len=128) :: error_message
13 !_______________________ standard-conforming statements ___________________________
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)
26 end program test_notify_wait