3 integer, allocatable
:: a
, b(:), c(:,:)
5 if (allocated (a
) .or
. allocated (b
) .or
. allocated (c
)) STOP 1
7 !$omp parallel private (a, b, c, l)
9 if (allocated (a
) .or
. allocated (b
) .or
. allocated (c
)) STOP 2
12 allocate (a
, b(6:9), c(3, 8:9))
16 !$omp end single copyprivate (a, b, c)
18 if (.not
.allocated (a
)) STOP 3
19 if (.not
.allocated (b
) .or
. size (b
) /= 4) STOP 4
20 if (lbound (b
, 1) /= 6 .or
. ubound (b
, 1) /= 9) STOP 5
21 if (.not
.allocated (c
) .or
. size (c
) /= 6) STOP 6
22 if (size (c
, 1) /= 3 .or
. size (c
, 2) /= 2) STOP 7
23 if (lbound (c
, 1) /= 1 .or
. ubound (c
, 1) /= 3) STOP 8
24 if (lbound (c
, 2) /= 8 .or
. ubound (c
, 2) /= 9) STOP 9
25 if (a
/= 4 .or
. any (b
/= 5) .or
. any (c
/= 6)) STOP 10
29 if (allocated (a
) .or
. allocated (b
) .or
. allocated (c
)) STOP 11
30 allocate (a
, b(0:4), c(3, 2:7))
34 !$omp end single copyprivate (a, b, c)
36 if (.not
.allocated (a
)) STOP 12
37 if (.not
.allocated (b
) .or
. size (b
) /= 5) STOP 13
38 if (lbound (b
, 1) /= 0 .or
. ubound (b
, 1) /= 4) STOP 14
39 if (.not
.allocated (c
) .or
. size (c
) /= 18) STOP 15
40 if (size (c
, 1) /= 3 .or
. size (c
, 2) /= 6) STOP 16
41 if (lbound (c
, 1) /= 1 .or
. ubound (c
, 1) /= 3) STOP 17
42 if (lbound (c
, 2) /= 2 .or
. ubound (c
, 2) /= 7) STOP 18
43 if (a
/= 1 .or
. any (b
/= 2) .or
. any (c
/= 3)) STOP 19
48 if (allocated (a
) .or
. allocated (b
) .or
. allocated (c
)) STOP 20
49 allocate (a
, b(2:6), c(3:5, 3:8))
53 !$omp end single copyprivate (a, b, c)
55 if (.not
.allocated (a
)) STOP 21
56 if (.not
.allocated (b
) .or
. size (b
) /= 5) STOP 22
58 if (lbound (b
, 1) /= 2 .or
. ubound (b
, 1) /= 6) STOP 23
60 if (lbound (b
, 1) /= 0 .or
. ubound (b
, 1) /= 4) STOP 24
62 if (.not
.allocated (c
) .or
. size (c
) /= 18) STOP 25
63 if (size (c
, 1) /= 3 .or
. size (c
, 2) /= 6) STOP 26
65 if (lbound (c
, 1) /= 3 .or
. ubound (c
, 1) /= 5) STOP 27
66 if (lbound (c
, 2) /= 3 .or
. ubound (c
, 2) /= 8) STOP 28
68 if (lbound (c
, 1) /= 1 .or
. ubound (c
, 1) /= 3) STOP 29
69 if (lbound (c
, 2) /= 2 .or
. ubound (c
, 2) /= 7) STOP 30
71 if (a
/= 7 .or
. any (b
/= 8) .or
. any (c
/= 9)) STOP 31