ibits.f90
来自「用于进行gcc测试」· F90 代码 · 共 16 行
F90
16 行
! { dg-do run }! Test that the mask is properly converted to the kind type of j in ibits.program ibits_test implicit none integer(8), parameter :: n = z'00000000FFFFFFFF' ! { dg-warning "BOZ literal at .1. outside a DATA statement" } integer(8) i,j,k,m j = 1 do i=1,70 j = ishft(j,1) + 1 k = ibits(j, 0, 32) m = iand(j,n) if (k /= m) call abort end doend program ibits_test
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?