📄 char_bounds_check_fail_1.f90
字号:
! { dg-do run }! { dg-options "-fbounds-check" }! { dg-shouldfail "Substring out of bounds check" }! PR fortran/27588program bound_check character*10 zz i = 2 j = i+9 zz = ' ' zz(i:j) = 'abcdef' print * , zz end! { dg-output "Substring out of bounds: upper bound exceeds string length.*at line 9)}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -