c_ptr_tests_13.f03

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

F03
16
字号
! { dg-do compile }! Ensure that the user cannot call the structure constructor for one of ! the iso_c_binding derived types.!! PR fortran/33760!program main   use ISO_C_BINDING   implicit none   integer(C_INTPTR_T) p   type(C_PTR) cptr   p = 0   cptr = C_PTR(p+1) ! { dg-error "Components of structure constructor" }   cptr = C_PTR(1) ! { dg-error "Components of structure constructor" } end program main

⌨️ 快捷键说明

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