2 ! PR 35990 - some empty array sections caused pack to crash.
3 ! Test case contributed by Dick Hendrickson, adjusted and
4 ! extended by Thomas Koenig.
7 call gf1048a( 10, 8, 7, 1, 0, .true
.)
8 call gf1048b( 10, 8, 7, 1, 0, .true
.)
9 call gf1048c( 10, 8, 7, 1, 0, .true
.)
10 call gf1048d( 10, 8, 7, 1, 0, .true
.)
11 call P_inta ( 10, 8, 7, 1, 0, .true
.)
12 call P_intb ( 10, 8, 7, 1, 0, .true
.)
13 call P_intc ( 10, 8, 7, 1, 0, .true
.)
14 call P_intd ( 10, 8, 7, 1, 0, .true
.)
17 SUBROUTINE GF1048a(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
21 BDA( 8:7) = PACK(BDA1( 10: 1), NF_TRUE
)
24 SUBROUTINE GF1048b(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
27 CHARACTER(9) BDA1(nf10
)
28 BDA(NF8
:NF7
) = PACK(BDA1(NF8
:NF7
), NF_TRUE
)
31 SUBROUTINE GF1048c(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
35 BDA(NF8
:NF7
) = PACK(BDA1(NF10
:NF1
), NF_TRUE
)
38 SUBROUTINE GF1048d(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
41 CHARACTER(9) BDA1(nf10
)
42 BDA(NF8
:NF7
) = PACK(BDA1(NF10
:NF1
), NF_TRUE
)
45 SUBROUTINE P_INTa(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
49 BDA( 8:7) = PACK(BDA1( 10: 1), NF_TRUE
)
52 SUBROUTINE P_INTb(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
56 BDA(NF8
:NF7
) = PACK(BDA1(NF8
:NF7
), NF_TRUE
)
59 SUBROUTINE P_INTc(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
63 BDA(NF8
:NF7
) = PACK(BDA1(NF10
:NF1
), NF_TRUE
)
66 SUBROUTINE P_INTd(nf10
,nf8
,nf7
,nf1
,nf0
,nf_true
)
70 BDA(NF8
:NF7
) = PACK(BDA1(NF10
:NF1
), NF_TRUE
)