private_type_5.f90
来自「用于进行gcc测试」· F90 代码 · 共 26 行
F90
26 行
! { dg-do compile }! Tests the fix for PR26779, where an error would occur because! init was detected to be public with a private type dummy argument.!! Contributed by Paul Thomas <pault@gcc.gnu.org>!module test public sub type, private :: t integer :: i end type tcontains subroutine sub (arg) integer arg type(t) :: root call init(root, arg) contains subroutine init(ir, i) integer i type(t) :: ir ir%i = i end subroutine init end subroutine subend module test! { dg-final { cleanup-modules "test" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?