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
56 lines
1.2 KiB
Fortran
56 lines
1.2 KiB
Fortran
! RUN: %python %S/test_symbols.py %s %flang_fc1
|
|
! Allow redeclaration of inherited inaccessible components
|
|
!DEF: /m1 Module
|
|
module m1
|
|
!DEF: /m1/t0 PRIVATE DerivedType
|
|
type, private :: t0
|
|
end type
|
|
!REF: /m1/t0
|
|
!DEF: /m1/t1 PUBLIC DerivedType
|
|
type, extends(t0) :: t1
|
|
!DEF: /m1/t1/n1a PRIVATE ObjectEntity INTEGER(4)
|
|
!DEF: /m1/t1/n1b PRIVATE ObjectEntity INTEGER(4)
|
|
integer, private :: n1a = 1, n1b = 2
|
|
end type
|
|
end module
|
|
!DEF: /m2 Module
|
|
module m2
|
|
!REF: /m1
|
|
use :: m1
|
|
!DEF: /m2/t1 PUBLIC Use
|
|
!DEF: /m2/t2 PUBLIC DerivedType
|
|
type, extends(t1) :: t2
|
|
!DEF: /m2/t2/t0 ObjectEntity REAL(4)
|
|
real :: t0
|
|
!DEF: /m2/t2/n1a ObjectEntity REAL(4)
|
|
real :: n1a
|
|
end type
|
|
!REF: /m2/t2
|
|
!DEF: /m2/t3 PUBLIC DerivedType
|
|
type, extends(t2) :: t3
|
|
!DEF: /m2/t3/n1b ObjectEntity REAL(4)
|
|
real :: n1b
|
|
end type
|
|
end module
|
|
!DEF: /test (Subroutine) Subprogram
|
|
subroutine test
|
|
!REF: /m2
|
|
use :: m2
|
|
!DEF: /test/t3 Use
|
|
!DEF: /test/x ObjectEntity TYPE(t3)
|
|
type(t3) :: x
|
|
!REF: /test/x
|
|
!REF: /m2/t3/n1b
|
|
x%n1b = 1.
|
|
!REF: /test/x
|
|
!DEF: /m2/t3/t2 (ParentComp) ObjectEntity TYPE(t2)
|
|
!DEF: /test/t2 Use
|
|
x%t2 = t2(t0=2., n1a=3.)
|
|
!REF: /test/x
|
|
!REF: /m2/t2/t0
|
|
x%t0 = 4.
|
|
!REF: /test/x
|
|
!REF: /m2/t2/n1a
|
|
x%n1a = 5.
|
|
end subroutine
|