[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / omp-allocate-directive.f90
blob4eb1669a35e88b2bcbd7da8693800e965bd5eea5
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1 -fopenmp
2 ! REQUIRES: shell
3 ! Check OpenMP Allocate directive
4 use omp_lib
6 ! 2.11.3 declarative allocate
7 ! 2.11.3 executable allocate
9 real, dimension (:,:), allocatable :: darray
10 integer :: a, b, x, y, m, n, t, z
11 !$omp allocate(x, y)
12 !$omp allocate(x, y) allocator(omp_default_mem_alloc)
14 !$omp allocate(a, b)
15 allocate ( darray(a, b) )
17 !$omp allocate(a, b) allocator(omp_default_mem_alloc)
18 allocate ( darray(a, b) )
20 !$omp allocate(t) allocator(omp_const_mem_alloc)
21 !$omp allocate(z) allocator(omp_default_mem_alloc)
22 !$omp allocate(m) allocator(omp_default_mem_alloc)
23 !$omp allocate(n)
24 allocate ( darray(z, t) )
26 end