interface_abstract_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 23 行
F90
23 行
! { dg-do compile }!module mod_interf_abstractimplicit noneabstract interface :: one ! { dg-error "Syntax error in ABSTRACT INTERFACE statement" }end interface ! { dg-error "Expecting END MODULE statement" }abstract interface subroutine two() bind(C) end subroutine two subroutine three() bind(C,name="three") ! { dg-error "NAME not allowed on BIND.C. for ABSTRACT INTERFACE" } end subroutine three ! { dg-error "Expecting END INTERFACE statement" } subroutine real() ! { dg-error "cannot be the same as an intrinsic type" } end subroutine realend interfacecontains subroutine sub() bind(C,name="subC") end subroutineend module mod_interf_abstract
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?