CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
70 lines
2.4 KiB
Fortran
70 lines
2.4 KiB
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
character*20 c(25), cv
|
|
character(kind=1,len=59) msg
|
|
character, parameter :: const_round = "c'est quoi?"
|
|
logical*2 v(5), lv
|
|
integer*1 stat1
|
|
integer*2 stat4
|
|
integer*8 stat8, iv
|
|
integer, parameter :: const_id = 1
|
|
|
|
inquire(10)
|
|
inquire(file='abc')
|
|
inquire(10, pos=ipos, iomsg=msg, iostat=stat1)
|
|
inquire(file='abc', &
|
|
access=c(1), action=c(2), asynchronous=c(3), blank=c(4), decimal=c(5), &
|
|
delim=c(6), direct=c(7), encoding=c(8), form=c(9), formatted=c(10), &
|
|
name=c(11), pad=c(12), position=c(13), read=c(14), readwrite=c(15), &
|
|
round=c(16), sequential=c(17), sign=c(18), stream=c(19), &
|
|
unformatted=c(20), write=c(21), &
|
|
err=9, &
|
|
nextrec=nextrec, number=number, pos=jpos, recl=jrecl, size=jsize, &
|
|
iomsg=msg, &
|
|
iostat=stat4, &
|
|
exist=v(1), named=v(2), opened=v(3), pending=v(4))
|
|
inquire(pending=v(5), file='abc')
|
|
inquire(10, id=id, pending=v(5))
|
|
inquire(10, id=const_id, pending=v(5))
|
|
inquire(10, carriagecontrol=c(1)) ! nonstandard
|
|
|
|
! using variable 'cv' multiple times seems to be allowed
|
|
inquire(file='abc', &
|
|
access=cv, action=cv, asynchronous=cv, blank=cv, decimal=cv, &
|
|
delim=cv, direct=cv, encoding=cv, form=cv, formatted=cv, &
|
|
name=cv, pad=cv, position=cv, read=cv, readwrite=cv, &
|
|
round=cv, sequential=cv, sign=cv, stream=cv, &
|
|
unformatted=cv, write=cv, &
|
|
nextrec=iv, number=iv, pos=iv, recl=iv, size=iv, &
|
|
exist=lv, named=lv, opened=lv, pending=lv)
|
|
|
|
!ERROR: INQUIRE statement must have a UNIT number or FILE specifier
|
|
inquire(err=9)
|
|
|
|
!ERROR: If FILE appears, UNIT must not appear
|
|
inquire(10, file='abc', blank=c(22), iostat=stat8)
|
|
|
|
!ERROR: Duplicate FILE specifier
|
|
inquire(file='abc', file='xyz')
|
|
|
|
!ERROR: Duplicate FORM specifier
|
|
inquire(form=c(1), iostat=stat1, form=c(2), file='abc')
|
|
|
|
!ERROR: Duplicate SIGN specifier
|
|
!ERROR: Duplicate READ specifier
|
|
!ERROR: Duplicate WRITE specifier
|
|
inquire(1, read=c(1), write=c(2), sign=c(3), sign=c(4), read=c(5), write=c(1))
|
|
|
|
!ERROR: Duplicate IOMSG specifier
|
|
!WARNING: IOMSG= is useless without either ERR= or IOSTAT=
|
|
inquire(10, iomsg=msg, pos=ipos, iomsg=msg)
|
|
|
|
!ERROR: If ID appears, PENDING must also appear
|
|
inquire(file='abc', id=id)
|
|
|
|
!ERROR: ROUND variable 'const_round' is not definable
|
|
!BECAUSE: '"c"' is not a variable or pointer
|
|
inquire(file='abc', round=const_round)
|
|
|
|
9 continue
|
|
end
|