[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / omp-reduction01.f90
blob85e866922e1cdd311fa35e567dfd21fd9a0f74ca
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.15.3.6 Reduction Clause
4 program omp_reduction
5 integer :: i
6 integer :: k = 10
8 !ERROR: Invalid reduction operator in REDUCTION clause.
9 !$omp parallel do reduction(**:k)
10 do i = 1, 10
11 k = k ** 1
12 end do
13 !$omp end parallel do
14 end program omp_reduction