[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / allocators03.f90
blob03cff1b1e99138e67728b8e35f70dd32b794fb7e
1 ! REQUIRES: openmp_runtime
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
4 ! OpenMP Version 5.2
5 ! 6.7 allocators construct
6 ! Only the allocate clause is allowed on the allocators construct
8 subroutine allocate()
9 use omp_lib
11 integer, allocatable :: arr1(:), arr2(:)
13 !ERROR: PRIVATE clause is not allowed on the ALLOCATORS directive
14 !$omp allocators allocate(arr1) private(arr2)
15 allocate(arr1(23), arr2(2))
17 end subroutine allocate