1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3 ! 2.11.3 allocate Directive
4 ! allocate directives that appear in a target region must specify an allocator
5 ! clause unless a requires directive with the dynamic_allocators clause is present
6 ! in the same compilation unit.
11 real, dimension (:,:), allocatable
:: darray
14 !$omp allocate allocator(omp_default_mem_alloc)
15 allocate ( darray(a
, b
) )
19 !ERROR: ALLOCATE directives that appear in a TARGET region must specify an allocator clause
21 allocate ( darray(a
, b
) )
24 end subroutine allocate