Files
clang-p2996/flang/test/Semantics/OpenMP/resolve01.f90
Kiran Chandramohan 3323a4bd3d [Flang][OpenMP] NFC: Remove omp prefix of test files in OpenMP Semantics
For tests in the OpenMP sub-directory the `omp` prefix is removed.
2023-02-25 11:21:38 +00:00

16 lines
423 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang -fopenmp
! 2.4 An array section designates a subset of the elements in an array. Although
! Substring shares similar syntax but cannot be treated as valid array section.
character*8 c, b
character a
b = "HIFROMPGI"
c = b(2:7)
!ERROR: Substrings are not allowed on OpenMP directives or clauses
!$omp parallel private(c(1:3))
a = c(1:1)
!$omp end parallel
end