fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / large_integer_kind_2.f90
blob68e64ab8ee43b0b994ccf9c995250718c87c0179
1 ! { dg-do run }
2 ! { dg-require-effective-target fortran_large_int }
4 ! Testing library calls on large integer kinds (larger than kind=8)
5 implicit none
7 integer,parameter :: k = selected_int_kind (range (0_8) + 1)
9 integer(kind=k) :: i, j
10 integer(8) :: a, b
12 i = 0; j = 1; a = i; b = j
13 if (i ** j /= a ** b) call abort
15 end