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
33 lines
1001 B
Fortran
33 lines
1001 B
Fortran
! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
|
|
|
|
! Test unparsing of RANK clause in array declaration statements
|
|
|
|
subroutine test_rank_clause(X3)
|
|
integer :: X0(10,10,10)
|
|
logical, rank(rank(X0)), allocatable :: X1 ! Rank 3, deferred shape
|
|
complex, rank(2), pointer :: X2 ! Rank 2, deferred-shape
|
|
logical, rank(rank(X0)) :: X3 ! Rank 3, assumed-shape
|
|
real, allocatable, rank(0) :: X4 ! Scalar
|
|
|
|
if (rank(X1) == 3 .and. rank(X2) == 2 .and. rank(X3) == 3 .and. &
|
|
rank(X4) == 0) then
|
|
print *, "PASS"
|
|
else
|
|
print *, "FAIL"
|
|
endif
|
|
|
|
end subroutine
|
|
|
|
! CHECK: SUBROUTINE test_rank_clause (x3)
|
|
! CHECK: INTEGER x0(10_4,10_4,10_4)
|
|
! CHECK: LOGICAL, RANK(3_4), ALLOCATABLE :: x1
|
|
! CHECK: COMPLEX, RANK(2_4), POINTER :: x2
|
|
! CHECK: LOGICAL, RANK(3_4) :: x3
|
|
! CHECK: REAL, ALLOCATABLE, RANK(0_4) :: x4
|
|
! CHECK: IF (.true._4) THEN
|
|
! CHECK: PRINT *, "PASS"
|
|
! CHECK: ELSE
|
|
! CHECK: PRINT *, "FAIL"
|
|
! CHECK: END IF
|
|
! CHECK: END SUBROUTINE
|