private_type_1.f90

来自「用于进行gcc测试」· F90 代码 · 共 22 行

F90
22
字号
! { dg-do compile }! { dg-options "-std=f95" }! PR21986 - test based on original example.! A public subroutine must not have private-type, dummy arguments.! Contributed by Paul Thomas <pault@gcc.gnu.org>module modboom  implicit none  private  public:: dummysub ! { dg-error "PRIVATE type and cannot be a dummy argument" }  type:: intwrapper    integer n  end type intwrappercontains  subroutine dummysub(size, arg_array)   type(intwrapper) :: size   real, dimension(size%n) :: arg_array   real :: local_array(4)  end subroutine dummysubend module modboom! { dg-final { cleanup-modules "modboom" } }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?