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
91 lines
1.7 KiB
Fortran
91 lines
1.7 KiB
Fortran
! RUN: %python %S/test_symbols.py %s %flang_fc1
|
|
!DEF: /MAIN MainProgram
|
|
program MAIN
|
|
!DEF: /MAIN/t1 DerivedType
|
|
type :: t1
|
|
!DEF: /MAIN/t1/a1 ObjectEntity INTEGER(4)
|
|
integer :: a1
|
|
end type
|
|
!REF: /MAIN/t1
|
|
!DEF: /MAIN/t2 DerivedType
|
|
type, extends(t1) :: t2
|
|
!DEF: /MAIN/t2/a2 ObjectEntity INTEGER(4)
|
|
integer :: a2
|
|
end type
|
|
!REF: /MAIN/t2
|
|
!DEF: /MAIN/t3 DerivedType
|
|
type, extends(t2) :: t3
|
|
!DEF: /MAIN/t3/a3 ObjectEntity INTEGER(4)
|
|
integer :: a3
|
|
end type
|
|
!REF: /MAIN/t3
|
|
!DEF: /MAIN/x3 ObjectEntity TYPE(t3)
|
|
type(t3) :: x3
|
|
!DEF: /MAIN/i ObjectEntity INTEGER(4)
|
|
integer i
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!REF: /MAIN/t2/a2
|
|
i = x3%a2
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!REF: /MAIN/t1/a1
|
|
i = x3%a1
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!DEF: /MAIN/t3/t2 (ParentComp) ObjectEntity TYPE(t2)
|
|
!REF: /MAIN/t2/a2
|
|
i = x3%t2%a2
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!REF: /MAIN/t3/t2
|
|
!REF: /MAIN/t1/a1
|
|
i = x3%t2%a1
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!DEF: /MAIN/t2/t1 (ParentComp) ObjectEntity TYPE(t1)
|
|
!REF: /MAIN/t1/a1
|
|
i = x3%t1%a1
|
|
!REF: /MAIN/i
|
|
!REF: /MAIN/x3
|
|
!REF: /MAIN/t3/t2
|
|
!REF: /MAIN/t2/t1
|
|
!REF: /MAIN/t1/a1
|
|
i = x3%t2%t1%a1
|
|
end program
|
|
|
|
!DEF: /m1 Module
|
|
module m1
|
|
!DEF: /m1/t1 PUBLIC DerivedType
|
|
type :: t1
|
|
!DEF: /m1/t1/t1 ObjectEntity INTEGER(4)
|
|
integer :: t1
|
|
end type
|
|
end module
|
|
|
|
!DEF: /s1 (Subroutine) Subprogram
|
|
subroutine s1
|
|
!REF: /m1
|
|
!DEF: /s1/t2 Use
|
|
!REF: /m1/t1
|
|
use :: m1, only: t2 => t1
|
|
!REF: /s1/t2
|
|
!DEF: /s1/t3 DerivedType
|
|
type, extends(t2) :: t3
|
|
end type
|
|
!REF: /s1/t3
|
|
!DEF: /s1/x ObjectEntity TYPE(t3)
|
|
type(t3) :: x
|
|
!DEF: /s1/i ObjectEntity INTEGER(4)
|
|
integer i
|
|
!REF: /s1/i
|
|
!REF: /s1/x
|
|
!REF: /m1/t1/t1
|
|
i = x%t1
|
|
!REF: /s1/i
|
|
!REF: /s1/x
|
|
!DEF: /s1/t3/t2 (ParentComp) ObjectEntity TYPE(t2)
|
|
!REF: /m1/t1/t1
|
|
i = x%t2%t1
|
|
end subroutine
|