1 ! Test for the MVBITS subroutine
2 ! This used to fail on big-endian architectures (PR 32357)
4 integer(kind
=8) :: i8
= 0
5 integer(kind
=4) :: i4
= 0
6 integer(kind
=2) :: i2
= 0
7 integer(kind
=1) :: i1
= 0
8 call mvbits (1_1, 0, 8, i1
, 0)
9 if (i1
/= 1) call abort
10 call mvbits (1_2, 0, 16, i2
, 0)
11 if (i2
/= 1) call abort
12 call mvbits (1_4, 0, 16, i4
, 0)
13 if (i4
/= 1) call abort
14 call mvbits (1_8, 0, 16, i8
, 0)
15 if (i8
/= 1) call abort