⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iomsg_1.f90

📁 linux下编程用 编译软件
💻 F90
字号:
! { dg-do run }! Test implementation of the iomsg tag.program iomsg_test  character(len=70) ch  ! Test that iomsg is left unchanged with no error  ch = 'asdf'  open(10, status='scratch', iomsg=ch, iostat=i) ! { dg-warning "Fortran 2003: IOMSG tag" }  if (ch .ne. 'asdf') call abort  ! Test iomsg with data transfer statement  read(10,'(I2)', iomsg=ch, end=100) k ! { dg-warning "Fortran 2003: IOMSG tag" }  call abort100 continue  if (ch .ne. 'End of file') call abort  ! Test iomsg with open  open (-3, err=200, iomsg=ch) ! { dg-warning "Fortran 2003: IOMSG tag" }  call abort200 continue  if (ch .ne. 'Bad unit number in OPEN statement') call abort  ! Test iomsg with close  close(23,status="no_idea", err=500, iomsg=ch) ! { dg-warning "Fortran 2003: IOMSG tag" }500 continue  if (ch .ne. "Bad STATUS parameter in CLOSE statement") call abortend program iomsg_test

⌨️ 快捷键说明

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