aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Lower/OpenMP/Todo/reduction-array-intrinsic.f90
blob: 49c899238d2a37cd5864abb9c9f2c3aa1f5ffc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
! RUN: %not_todo_cmd bbc -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s
! RUN: %not_todo_cmd %flang_fc1 -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s

! CHECK: not yet implemented: Reduction of some types is not supported for intrinsics
subroutine max_array_reduction(l, r)
  integer :: l(:), r(:)

  !$omp parallel reduction(max:l)
    l = max(l, r)
  !$omp end parallel
end subroutine