1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
19 !ERROR: The procedure 'entry1' in DECLARE TARGET construct cannot be an entry name.
20 !$omp declare target(bar, entry1)
27 integer function foo(a
)
28 integer, intent(in
) :: a
31 procedure(foo
), pointer :: procptr
32 !ERROR: The procedure 'procptr' in DECLARE TARGET construct cannot be a procedure pointer.
33 !$omp declare target(procptr)
37 real, intent(inout
) :: x
39 stmtfunc(x
) = 4.0 * (x
**3)
40 !ERROR: The procedure 'stmtfunc' in DECLARE TARGET construct cannot be a statement function.
41 !$omp declare target (stmtfunc)
47 !ERROR: The procedure 'foo' in DECLARE TARGET construct cannot be a generic name.
48 !$omp declare target(foo)