c_funloc_tests.f03
来自「用于进行gcc测试」· F03 代码 · 共 22 行
F03
22 行
! { dg-do run }! This test case simply checks that c_funloc exists, accepts arguments of ! flavor FL_PROCEDURE, and returns the type c_funptrmodule c_funloc_tests use, intrinsic :: iso_c_binding, only: c_funptr, c_funloccontains subroutine sub0() bind(c) type(c_funptr) :: my_c_funptr my_c_funptr = c_funloc(sub0) end subroutine sub0end module c_funloc_testsprogram driver use c_funloc_tests call sub0()end program driver! { dg-final { cleanup-modules "c_funloc_tests" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?