[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / omp-resolve01.f90
blobb716c4a6853b258c28837c94ab83ea0b3b8d71e5
1 ! RUN: %python %S/test_errors.py %s %flang -fopenmp
3 ! 2.4 An array section designates a subset of the elements in an array. Although
4 ! Substring shares similar syntax but cannot be treated as valid array section.
6 character*8 c, b
7 character a
9 b = "HIFROMPGI"
10 c = b(2:7)
11 !ERROR: Substrings are not allowed on OpenMP directives or clauses
12 !$omp parallel private(c(1:3))
13 a = c(1:1)
14 !$omp end parallel
15 end