1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
2 ! Check OpenMP Allocate directive
5 ! 2.11.3 declarative allocate
6 ! 2.11.3 executable allocate
8 real, dimension (:,:), allocatable
:: darray
9 integer :: a
, b
, x
, y
, m
, n
, t
, z
11 !$omp allocate(x, y) allocator(omp_default_mem_alloc)
14 allocate ( darray(a
, b
) )
16 !$omp allocate(a, b) allocator(omp_default_mem_alloc)
17 allocate ( darray(a
, b
) )
19 !$omp allocate(t) allocator(omp_const_mem_alloc)
20 !$omp allocate(z) allocator(omp_default_mem_alloc)
21 !$omp allocate(m) allocator(omp_default_mem_alloc)
23 allocate ( darray(z
, t
) )