1 ! RUN: %python %S/../test_errors.py %s %flang -fopenacc
3 ! Check OpenACC clause validity for the following construct and directive:
6 module openacc_routine_validity
9 !$acc routine(sub3) seq
11 !$acc routine(fct2) vector
15 !ERROR: ROUTINE directive without name must appear within the specification part of a subroutine or function definition, or within an interface body for a subroutine or function in an interface block
18 !$acc routine(dummy) seq
29 !ERROR: Clause NOHOST is not allowed after clause DEVICE_TYPE on the ROUTINE directive
30 !$acc routine seq device_type(*) nohost
44 !$acc routine(sub5) seq
50 !$acc routine vector nohost
61 !$acc routine seq bind(fct2)
67 !$acc routine seq bind("_fct4")
72 !$acc routine seq bind(dummy_sub)
77 !ERROR: SHORTLOOP clause is not allowed on the KERNELS directive
78 !$acc kernels shortloop
82 end module openacc_routine_validity