[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / allocate04.f90
blobea89d9446cc14620a8a326e86562cea055ba7a7e
1 ! REQUIRES: openmp_runtime
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
4 ! OpenMP Version 5.0
5 ! 2.11.3 allocate Directive
6 ! Only the allocator clause is allowed on the allocate directive
7 subroutine allocate()
8 use omp_lib
10 integer :: x, y
12 !$omp allocate(x) allocator(omp_default_mem_alloc)
14 !ERROR: PRIVATE clause is not allowed on the ALLOCATE directive
15 !$omp allocate(y) private(y)
16 end subroutine allocate