[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / allocate06.f90
blobe14134cd073011039ad733906fef1ae4b791c86e
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 ! List items specified in the allocate directive must not have the ALLOCATABLE attribute unless the directive is associated with an
7 ! allocate statement.
9 subroutine allocate()
10 use omp_lib
11 integer :: a, b, x
12 real, dimension (:,:), allocatable :: darray
14 !ERROR: List items specified in the ALLOCATE directive must not have the ALLOCATABLE attribute unless the directive is associated with an ALLOCATE statement
15 !$omp allocate(darray) allocator(omp_default_mem_alloc)
17 !$omp allocate(darray) allocator(omp_default_mem_alloc)
18 allocate(darray(a, b))
20 end subroutine allocate