global_vars_c_init.f90
来自「用于进行gcc测试」· F90 代码 · 共 19 行
F90
19 行
! { dg-do run }! { dg-additional-sources global_vars_c_init_driver.c }module global_vars_c_init use, intrinsic :: iso_c_binding, only: c_int implicit none integer(c_int), bind(c, name='i') :: Icontains subroutine test_globals() bind(c) ! the value of I is initialized above if(I .ne. 2) then call abort() endif end subroutine test_globalsend module global_vars_c_init! { dg-final { cleanup-modules "global_vars_c_init" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?