autocmake/test/fc_int64/src/example.f90
Radovan Bast e9182ffcec cosmetics
2015-08-07 16:49:14 +02:00

23 lines
319 B
Fortran

program example
implicit none
! max integer(4) is 2147483647
integer(8), parameter :: i8ref = 2147483648
integer :: i
logical :: test_ok
i = i8ref
test_ok = (sizeof(i) == 8 .and. i == 2147483648)
if (test_ok) then
print *, "PASSED"
else
stop "FAILED"
endif
end program