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
13 !ERROR: At least one of GANG, SEQ, VECTOR, WORKER clause must appear on the ROUTINE directive
16 !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
19 !ERROR: No function or subroutine declared for 'dummy'
20 !$acc routine(dummy) seq
26 !ERROR: At least one of GANG, SEQ, VECTOR, WORKER clause must appear on the ROUTINE directive
32 !ERROR: Clause NOHOST is not allowed after clause DEVICE_TYPE on the ROUTINE directive
33 !$acc routine seq device_type(*) nohost
47 !$acc routine(sub5) seq
53 !$acc routine vector nohost
64 !$acc routine seq bind(fct2)
70 !$acc routine seq bind("_fct4")
75 !ERROR: No function or subroutine declared for 'dummy_sub'
76 !$acc routine seq bind(dummy_sub)
79 end module openacc_routine_validity