c_ptr_tests_5.f03
来自「用于进行gcc测试」· F03 代码 · 共 17 行
F03
17 行
! { dg-do compile }module c_ptr_tests_5use, intrinsic :: iso_c_bindingtype, bind(c) :: my_f90_type integer(c_int) :: iend type my_f90_typecontains subroutine sub0(c_struct) bind(c) type(c_ptr), value :: c_struct type(my_f90_type) :: f90_type call c_f_pointer(c_struct, f90_type) ! { dg-error "must be a pointer" } end subroutine sub0end module c_ptr_tests_5
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?