[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / omp-do-schedule01.f90
blob2c52f968eaef945a68cfaf823d1737671f998026
1 ! RUN: %python %S/test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.7.1 Schedule Clause
4 program omp_doSchedule
5 integer :: i,n
6 real :: a(100), y(100), z(100)
7 !ERROR: The chunk size of the SCHEDULE clause must be a positive integer expression
8 !$omp do schedule(static, -1)
9 do i=2,n+1
10 y(i) = z(i-1) + a(i)
11 end do
12 !$omp end do
13 end program omp_doSchedule