io_real_boz2.f90

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

F90
16
字号
! { dg-do run }! { dg-shouldfail "Real BOZ not allowed" }! { dg-options "-fall-intrinsics -std=f2003" }! Test for invalid (F95/F2003) writing of real with octal edit descriptor! PR fortran/29625program real_boz  implicit none  real(4)           :: r  character(len=100) :: str  r = 325.56  write(str,'(o0)') rend program real_boz! { dg-output "At line 12 .*" }! { dg-output "Expected INTEGER .* in formatted transfer, got REAL" }

⌨️ 快捷键说明

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