intrinsic_shape.f90

来自「用于进行gcc测试」· F90 代码 · 共 23 行

F90
23
字号
! Program to test the shape intrinsicprogram testbounds   implicit none   real, dimension(:, :), allocatable :: a   integer, dimension(2) :: j   integer i   allocate (a(3:8, 6:7))   j = shape (a);   if (any (j .ne. (/ 6, 2 /))) call abort   call test(a)containssubroutine test (a)   real, dimension (1:, 1:) :: a   if (any (shape (a) .ne. (/ 6, 2 /))) call abortend subroutineend program

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?