Debian Codegraph @

libgomp/testsuite/libgomp.fortran/allocators-5.f90

raw
1 ! { dg-additional-options "-fopenmp-allocators" }
2 module m
3 contains
4 subroutine s(a,b,c,d)
5 integer, allocatable :: A, B
6 integer, allocatable :: C(:), D(:)
7
8 !$omp allocators allocate(A,B)
9 allocate(A,B)
10 call move_alloc(A,B)
11
12 !$omp allocators allocate(C,D)
13 allocate(C(5),D(5))
14 call move_alloc(C,D)
15 end
16
17 subroutine q()
18 integer, allocatable :: A, B
19 integer, allocatable :: C(:), D(:)
20
21 call s(a,b,c,d)
22 end
23 end
24
25 use m
26 call q
27 end