blob: 5d7e8cb0ad5eb6725addc887b11654167f837808 [file] [edit]
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags -fopenmp-version=52
! OpenMP Version 5.2
! 6.7 allocators construct
! Only the allocate clause is allowed on the allocators construct
subroutine allocate()
integer, allocatable :: arr1(:), arr2(:)
!ERROR: PRIVATE clause is not allowed on ALLOCATORS directive
!$omp allocators allocate(arr1) private(arr2)
allocate(arr1(23), arr2(2))
end subroutine allocate