reshape_source_size_1.f90

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

F90
12
字号
! { dg-do compile }! Tests patch for PR29758, which arose from PR29431.  There was no check that there! were enough elements in the source to match the shape.!! Contributed by Paul Thomas  <pault@gcc.gnu.org>!   real :: a(2,2), b = 1.0, c(3), d(4)   a = reshape ([b], [2,2]) ! { dg-error "not enough elements" }   a = reshape (c, [2,2])   ! { dg-error "not enough elements" }   a = reshape (d, [2,2])end

⌨️ 快捷键说明

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