maxloc_shape_1.f90

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

F90
15
字号
! { dg-do compile }! Tests the implementation of compile-time shape testing, required to fix! PR19015.  The functionality of maxloc and friends is tested by existing! testcases.!! Contributed by Thomas Koeing  <Thomas.Koenig@online.de>!  integer, dimension(0:1,0:1) :: n  integer, dimension(1) :: i  n = reshape((/1, 2, 3, 4/), shape(n))  i = maxloc(n) ! { dg-error "Different shape for array assignment" }  i = maxloc(n,dim=1) ! { dg-error "Different shape for array assignment" }!  print *,iend program

⌨️ 快捷键说明

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