[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / OpenACC / acc-wait-validity.f90
blob25d603dad05026d130fedf0fe71fc5dc5933e578
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenacc
3 ! Check OpenACC clause validity for the following construct and directive:
4 ! 2.16.13 Wait
6 program openacc_wait_validity
8 implicit none
10 logical :: ifCondition = .TRUE.
12 !$acc wait
14 !$acc wait async
16 !$acc wait(1)
17 !$acc wait(1, 2)
19 !$acc wait(queues: 1)
20 !$acc wait(queues: 1, 2)
22 !$acc wait(devnum: 1: 3)
23 !$acc wait(devnum: 1: 3, 4)
25 !$acc wait(devnum: 1: queues: 3)
26 !$acc wait(devnum: 1: queues: 3, 4)
28 !$acc wait(1) if(.true.)
30 !ERROR: At most one IF clause can appear on the WAIT directive
31 !$acc wait(1) if(.true.) if(.false.)
33 !$acc wait(1) if(.true.) async
35 !$acc wait(1) if(ifCondition) async
37 !$acc wait(1) if(.true.) async(1)
39 !ERROR: At most one ASYNC clause can appear on the WAIT directive
40 !$acc wait(1) if(.true.) async(1) async
42 end program openacc_wait_validity