1 ! RUN: %flang -fsyntax-only -fopenmp %s 2>&1
3 ! Check that OpenMP declarative directives can be used with objects that have
7 ! OMPv5.2 5.2 threadprivate
11 !$omp threadprivate(x1)
15 ! OMPv5.2 7.7 declare-simd
17 !$omp declare simd(simd_func)
20 ! OMPv5.2 7.8.1 declare-target
22 !$omp declare target(j)
26 ! OMPv5.2 5.5.11 declare-reduction - crashes
27 !external :: my_add_red
28 !!$omp declare reduction(my_add_red : integer : my_add_red(omp_out, omp_in)) &
29 !!$omp& initializer(omp_priv=0)
30 !integer :: my_add_red
35 !$omp threadprivate(x1)
40 !$omp threadprivate(x2)
47 !$omp threadprivate(x, y, z)
53 !$omp parallel copyin(x, y, z)