1 ! RUN: %python %S/../test_errors.py %s %flang -fopenacc
3 ! Check OpenACC clause validity for the following construct and directive:
6 program openacc_wait_validity
10 logical :: ifCondition
= .TRUE
.
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