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
43 lines
1.2 KiB
Fortran
43 lines
1.2 KiB
Fortran
! RUN: %flang_fc1 -emit-hlfir -debug-info-kind=standalone %s -o - | FileCheck %s --check-prefix=WITH_DEBUG
|
|
! RUN: %flang_fc1 -emit-hlfir %s -o - | FileCheck %s --check-prefix=NO_DEBUG
|
|
! RUN: %flang_fc1 -emit-hlfir -debug-info-kind=line-tables-only %s -o - | FileCheck %s --check-prefix=NO_DEBUG
|
|
|
|
module mod_ma
|
|
integer :: va = 1
|
|
end module mod_ma
|
|
|
|
module mod_mb
|
|
integer :: vb = 2
|
|
end module mod_mb
|
|
|
|
module mod_mc
|
|
integer :: vc = 3
|
|
end module mod_mc
|
|
|
|
! A module that uses three different modules in its specification part.
|
|
module mod_multi
|
|
use mod_ma, only: va
|
|
use mod_mb
|
|
use mod_mc, renamed_vc => vc
|
|
integer :: vx = 0
|
|
end module mod_multi
|
|
|
|
subroutine test_sub_uses_multi
|
|
use mod_multi
|
|
implicit none
|
|
print *, vx
|
|
end subroutine
|
|
|
|
! WITH_DEBUG: fir.module_debug_imports "mod_multi" {
|
|
! WITH_DEBUG-NEXT: fir.use_stmt "mod_ma" only_symbols{{\[}}[@_QMmod_maEva]]
|
|
! WITH_DEBUG-NEXT: fir.use_stmt "mod_mb"{{$}}
|
|
! WITH_DEBUG-NEXT: fir.use_stmt "mod_mc" renames{{\[}}[#fir.use_rename<"renamed_vc", @_QMmod_mcEvc>]]
|
|
! WITH_DEBUG-NEXT: }
|
|
|
|
! There should be no more fir.use_stmt for mod_ma, mod_mb and mod_mc.
|
|
! WITH_DEBUG-NOT: fir.use_stmt "mod_ma"
|
|
! WITH_DEBUG-NOT: fir.use_stmt "mod_mb"
|
|
! WITH_DEBUG-NOT: fir.use_stmt "mod_mc"
|
|
|
|
! NO_DEBUG-NOT: fir.module_debug_imports
|