1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3 ! 2.11.3 allocate Directive
4 ! The allocate directive must appear in the same scope as the declarations of
5 ! each of its list items and must follow all such declarations.
13 real, dimension (:,:), allocatable
:: darray
15 !ERROR: List items must be declared in the same scoping unit in which the ALLOCATE directive appears
19 !ERROR: List items must be declared in the same scoping unit in which the ALLOCATE directive appears
20 !$omp allocate(x) allocator(omp_default_mem_alloc)
21 allocate ( darray(a
, b
) )
24 end subroutine allocate