xref: /llvm-project/flang/test/Semantics/OpenMP/linear-clause02.f90 (revision 03cbe42627c7a7940b47cc1a2cda0120bc9c6d5e)
1!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=52
2
3subroutine f00(x)
4  integer :: x
5  !WARNING: The 'modifier(<list>)' syntax is deprecated in OpenMP v5.2, use '<list> : modifier' instead
6  !$omp declare simd linear(uval(x))
7end
8
9subroutine f01(x)
10  integer :: x
11  !ERROR: An exclusive 'step-simple-modifier' modifier cannot be specified together with a modifier of a different type
12  !$omp declare simd linear(uval(x) : 2)
13end
14