Files
clang-p2996/flang/test/Semantics/OpenMP/allocators03.f90
Kiran Chandramohan 15710bbdad [Flang][OpenMP] Re-enable tests on windows 1/n (#92904)
Re-enable tests starting with a or b.
2024-05-22 10:21:46 +01:00

18 lines
459 B
Fortran

! REQUIRES: openmp_runtime
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
! OpenMP Version 5.2
! 6.7 allocators construct
! Only the allocate clause is allowed on the allocators construct
subroutine allocate()
use omp_lib
integer, allocatable :: arr1(:), arr2(:)
!ERROR: PRIVATE clause is not allowed on the ALLOCATORS directive
!$omp allocators allocate(arr1) private(arr2)
allocate(arr1(23), arr2(2))
end subroutine allocate