hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / mvbits_2.f90
blobbf98ad07f17da978ad84103be867419716db4ada
1 ! Test for the MVBITS subroutine
2 ! This used to fail on big-endian architectures (PR 32357)
3 ! { dg-do run }
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) STOP 1
10 call mvbits (1_2, 0, 16, i2, 0)
11 if (i2 /= 1) STOP 2
12 call mvbits (1_4, 0, 16, i4, 0)
13 if (i4 /= 1) STOP 3
14 call mvbits (1_8, 0, 16, i8, 0)
15 if (i8 /= 1) STOP 4
16 end