array_initializer_3.f90
来自「用于进行gcc测试」· F90 代码 · 共 15 行
F90
15 行
! { dg-do compile }! Tests the fix for PR28923 in which initializer array constructors with! a missing initial array index and negative stride would be incorrectly! interpreted.!! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>!real, dimension(3,3), parameter :: a=reshape ((/(i, i = 1,9)/),(/3,3/))real, dimension(2,3) :: b=a(:2:-1,:) ! { dg-error "Different shape for array assignment" }real, dimension(2,3) :: c=a(3:2:-1,:)print *, bprint *, cend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?