c_ptr_tests_8.f03

来自「用于进行gcc测试」· F03 代码 · 共 21 行

F03
21
字号
! { dg-do run }! { dg-additional-sources c_ptr_tests_8_funcs.c }program mainuse iso_c_binding, only: c_ptrimplicit noneinterface  function create() bind(c)    use iso_c_binding, only: c_ptr    type(c_ptr) :: create  end function create  subroutine show(a) bind(c)    import :: c_ptr    type(c_ptr), VALUE :: a  end subroutine showend interfacetype(c_ptr) :: ptrptr = create()call show(ptr)end program main

⌨️ 快捷键说明

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