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
41 lines
1.1 KiB
Fortran
41 lines
1.1 KiB
Fortran
! RUN: %python %S/test_modfile.py %s %flang_fc1
|
|
|
|
! Test modfiles for entities with initialization
|
|
module m
|
|
integer, parameter :: k8 = 8
|
|
integer(8), parameter :: k4 = k8/2
|
|
integer, parameter :: k1 = 1
|
|
integer(k8), parameter :: i = 2_k8
|
|
real :: r = 2.0_k4
|
|
character(10, kind=k1) :: c = k1_"asdf"
|
|
character(10), parameter :: c2 = k1_"qwer"
|
|
complex*16, parameter :: z = (1.0_k8, 2.0_k8)
|
|
complex*16, parameter :: zn = (-1.0_k8, 2.0_k8)
|
|
type t
|
|
integer :: a = 123
|
|
type(t), pointer :: b => null()
|
|
end type
|
|
type(t), parameter :: x = t(456)
|
|
type(t), parameter :: y = t(789, null())
|
|
end
|
|
|
|
!Expect: m.mod
|
|
!module m
|
|
! integer(4),parameter::k8=8_4
|
|
! integer(8),parameter::k4=4_8
|
|
! integer(4),parameter::k1=1_4
|
|
! integer(8),parameter::i=2_8
|
|
! real(4)::r
|
|
! character(10_4,1)::c
|
|
! character(10_4,1),parameter::c2="qwer "
|
|
! complex(8),parameter::z=(1._8,2._8)
|
|
! complex(8),parameter::zn=(-1._8,2._8)
|
|
! type::t
|
|
! integer(4)::a=123_4
|
|
! type(t),pointer::b=>NULL()
|
|
! end type
|
|
! intrinsic::null
|
|
! type(t),parameter::x=t(a=456_4,b=NULL())
|
|
! type(t),parameter::y=t(a=789_4,b=NULL())
|
|
!end
|