private_type_10.f90

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

F90
35
字号
! { dg-do compile }! { dg-options "-std=f95" }!! PR fortran/34438!! Check that error is not issued for local, non-module! variables.!! Contributed by Sven Buijssen!module demo  implicit none  private  type myint    integer :: bar = 42  end type myint  public :: funccontains  subroutine func()    type(myint) :: foo  end subroutine funcend module demomodule demo2  implicit none  private  type myint    integer :: bar = 42  end type myint  type(myint), save :: foo2 ! { dg-error "of PRIVATE derived type" }  public :: foo2end module demo2! { dg-final { cleanup-modules "demo" } }

⌨️ 快捷键说明

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