1 ! RUN: %S/test_errors.sh %s %t %flang_fc1 -fopenmp
4 ! 2.11.3 allocate Directive
5 ! At most one allocator clause can appear on the allocate directive.
11 real, dimension (:,:), allocatable
:: darray
13 !$omp allocate(x, y) allocator(omp_default_mem_alloc)
15 !ERROR: At most one ALLOCATOR clause can appear on the ALLOCATE directive
16 !$omp allocate(x, y) allocator(omp_default_mem_alloc) allocator(omp_default_mem_alloc)
18 !$omp allocate(x) allocator(omp_default_mem_alloc)
19 allocate ( darray(a
, b
) )
21 !ERROR: At most one ALLOCATOR clause can appear on the ALLOCATE directive
22 !$omp allocate(x) allocator(omp_default_mem_alloc) allocator(omp_default_mem_alloc)
23 allocate ( darray(a
, b
) )
25 end subroutine allocate