1 !RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=45
5 !ERROR: Reference to x must be a contiguous object
6 !$omp target update to(x(1:10:2))
11 !WARNING: 'iterator' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
12 !$omp target update to(iterator(i = 1:5): x(i))
17 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
18 !WARNING: 'iterator' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
19 !$omp target update to(present, iterator(i = 1:5): x(i))
24 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
25 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
26 !ERROR: 'expectation' modifier cannot occur multiple times
27 !$omp target update to(present, present: x)
31 !ERROR: 'f04' must be a variable
32 !$omp target update to(f04)