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
40 lines
1.8 KiB
Fortran
40 lines
1.8 KiB
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
|
|
! Test BLOCK DATA subprogram (14.3)
|
|
block data foo
|
|
!ERROR: IMPORT is not allowed in a BLOCK DATA subprogram
|
|
import
|
|
real :: pi = asin(-1.0) ! ok
|
|
!ERROR: An initialized variable in BLOCK DATA must be in a COMMON block
|
|
integer :: notInCommon = 1
|
|
integer :: uninitialized ! ok
|
|
!PORTABILITY: Procedure pointer 'q' should not have an ELEMENTAL intrinsic as its interface [-Wportability]
|
|
!ERROR: 'q' may not appear in a BLOCK DATA subprogram
|
|
procedure(sin), pointer :: q => cos
|
|
!ERROR: 'p' may not be a procedure as it is in a COMMON block
|
|
procedure(sin), pointer :: p => cos
|
|
common /block/ p, pi
|
|
!ERROR: An initialized variable in BLOCK DATA must be in a COMMON block
|
|
integer :: inDataButNotCommon
|
|
data inDataButNotCommon /1/
|
|
integer :: inCommonA, inCommonB
|
|
!ERROR: 'incommona' in COMMON block /a/ must not be storage associated with 'incommonb' in COMMON block /b/ by EQUIVALENCE
|
|
common /a/ inCommonA, /b/ inCommonB
|
|
equivalence(inCommonA, inCommonB)
|
|
integer :: inCommonD, initialized ! ok
|
|
common /d/ inCommonD
|
|
equivalence(inCommonD, initialized)
|
|
data initialized /2/
|
|
integer :: inCommonE, jarr(2)
|
|
equivalence(inCommonE, jarr(2))
|
|
!ERROR: 'incommone' cannot backward-extend COMMON block /e/ via EQUIVALENCE with 'jarr'
|
|
common /e/ inCommonE
|
|
equivalence(inCommonF1, inCommonF2)
|
|
integer :: inCommonF1, inCommonF2
|
|
!ERROR: 'incommonf1' is storage associated with 'incommonf2' by EQUIVALENCE elsewhere in COMMON block /f/
|
|
common /f/ inCommonF1, inCommonF2
|
|
!Regression test for llvm-project/issues/65922 - no error expected
|
|
common /g/ inCommonG1, inCommonG2
|
|
real inCommonG1(-9:10), inCommonG2(10), otherG(11)
|
|
equivalence (inCommonG1(1), otherG), (otherG(11), inCommonG2)
|
|
end block data
|