📄 used_types_17.f90
字号:
! { dg do-compile }! Tests the fix for PR31630, in which the association of the argument! of 'cmp' did not work.!! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>!module box_module type box integer :: m = 0 end type boxend module box_modulemodule sort_box_modulecontains subroutine heapsort_box(cmp) interface subroutine cmp(a) use box_module type(box) :: a end subroutine cmp end interface optional :: cmp end subroutine heapsort_boxend module sort_box_modulemodule boxarray_module use box_module implicit none type boxarray type(box), allocatable :: bxs(:) end type boxarraycontains subroutine boxarray_build_l(ba) type(boxarray) :: ba allocate(ba%bxs(1)) end subroutine boxarray_build_l subroutine boxarray_sort() use sort_box_module call heapsort_box end subroutine boxarray_sortend module boxarray_module! { dg-final { cleanup-modules "box_module sort_box_module boxarray_module" } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -