c_size_t_test.f03

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

F03
19
字号
! { dg-do run }! { dg-additional-sources c_size_t_driver.c }module c_size_t_test  use, intrinsic :: iso_c_bindingcontains  subroutine sub0(my_c_size) bind(c)    integer(c_int), value :: my_c_size ! value of C's sizeof(size_t)    ! if the value of c_size_t isn't equal to the value of C's sizeof(size_t)     ! we call abort.    if(c_size_t .ne. my_c_size) then       call abort ()    end if  end subroutine sub0end module c_size_t_test! { dg-final { cleanup-modules "c_size_t_test" } }

⌨️ 快捷键说明

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