1 ! REQUIRES: openmp_runtime
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
5 ! 2.11.3 allocate Directive
6 ! allocate directives that appear in a target region must specify an allocator
7 ! clause unless a requires directive with the dynamic_allocators clause is present
8 ! in the same compilation unit.
13 real, dimension (:,:), allocatable
:: darray
16 !$omp allocate allocator(omp_default_mem_alloc)
17 allocate ( darray(a
, b
) )
21 !ERROR: ALLOCATE directives that appear in a TARGET region must specify an allocator clause
23 allocate ( darray(a
, b
) )
26 end subroutine allocate