1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
6 !ERROR: Orphaned SCAN directives are prohibited; perhaps you forgot to enclose the directive in to a WORKSHARING LOOP, a WORKSHARING LOOP SIMD or a SIMD directive.
7 !ERROR: List item x must appear in REDUCTION clause with the INSCAN modifier of the parent directive
8 !$omp scan inclusive(x)
11 !ERROR: UNTIED clause is not allowed on the SCAN directive
15 !$omp parallel do simd
17 !ERROR: Exactly one of EXCLUSIVE or INCLUSIVE clause is expected
21 !$omp parallel do simd reduction(inscan,+: x, y)
23 !ERROR: Exactly one of EXCLUSIVE or INCLUSIVE clause is expected
24 !$omp scan inclusive(x) exclusive(y)
27 !ERROR: List item y must appear in EXCLUSIVE or INCLUSIVE clause of an enclosed SCAN directive
28 !$omp parallel do simd reduction(inscan,+: x, y)
30 !ERROR: Exactly one of EXCLUSIVE or INCLUSIVE clause is expected
31 !ERROR: List item z must appear in REDUCTION clause with the INSCAN modifier of the parent directive
32 !$omp scan inclusive(x) exclusive(z)