Debian Codegraph @

flang/test/Semantics/OpenMP/declare-target06.f90

raw
1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 5.1
3 ! Check OpenMP construct validity for the following directives:
4 ! 2.14.7 Declare Target Directive
5 ! When used in an implicit none context.
6
7 module test_0
8 implicit none
9 !ERROR: The given DECLARE TARGET directive clause has an invalid argument
10 !ERROR: No explicit type declared for 'no_implicit_materialization_1'
11 !$omp declare target(no_implicit_materialization_1)
12
13 !ERROR: The given DECLARE TARGET directive clause has an invalid argument
14 !ERROR: No explicit type declared for 'no_implicit_materialization_2'
15 !$omp declare target link(no_implicit_materialization_2)
16
17 !ERROR: The given DECLARE TARGET directive clause has an invalid argument
18 !WARNING: The usage of TO clause on DECLARE TARGET directive has been deprecated. Use ENTER clause instead.
19 !ERROR: No explicit type declared for 'no_implicit_materialization_3'
20 !$omp declare target to(no_implicit_materialization_3)
21
22 !ERROR: The given DECLARE TARGET directive clause has an invalid argument
23 !ERROR: No explicit type declared for 'no_implicit_materialization_3'
24 !$omp declare target enter(no_implicit_materialization_3)
25
26 INTEGER :: data_int = 10
27 !$omp declare target(data_int)
28 end module test_0