PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / int_2.f90
bloba6006aad8f0d2cded9b09dd86a99f04f097d08aa
1 ! PR fortran/32823
2 ! { dg-do compile }
4 module token_module
6 integer, parameter :: INT8 = SELECTED_INT_KIND(16)
7 integer, parameter :: REAL8 = SELECTED_REAL_KIND(12)
9 contains
10 subroutine token_allreduce_i8_v(dowhat, array, result, length)
13 character(*), intent(in) :: dowhat
14 integer, intent(in) :: length
15 integer(INT8), intent(in) :: array(*)
16 integer(INT8), intent(inout) :: result(*)
19 real(REAL8) :: copy_r8(length), result_r8(length)
22 result(1:length) = int(result_r8(1:length), INT8)
25 end subroutine token_allreduce_i8_v
27 end module token_module