import3.f90
来自「用于进行gcc测试」· F90 代码 · 共 34 行
F90
34 行
! { dg-do compile }! { dg-shouldfail "Invalid use of IMPORT" }! Test invalid uses of import! PR fortran/29601subroutine test() type myType3 import ! { dg-error "only permitted in an INTERFACE body" } sequence integer :: i end type myType3end subroutine testprogram foo import ! { dg-error "only permitted in an INTERFACE body" } type myType sequence integer :: i end type myType type myType3 sequence integer :: i end type myType3 interface import ! { dg-error "only permitted in an INTERFACE body" } subroutine bar() import foob ! { dg-error "Cannot IMPORT 'foob' from host scoping unit" } end subroutine bar subroutine test() import :: ! { dg-error "Expecting list of named entities" } end subroutine test end interfaceend program foo
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?