binding_label_tests_4.f03

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

F03
25
字号
! { dg-do compile }module A  use, intrinsic :: iso_c_bindingcontains  subroutine pA() bind(c, name='printf') ! { dg-error "collides" }    print *, 'hello from pA'  end subroutine pAend module Amodule B  use, intrinsic :: iso_c_bindingcontains  subroutine pB() bind(c, name='printf') ! { dg-error "collides" }    print *, 'hello from pB'  end subroutine pBend module Bmodule Cuse Ause B ! { dg-error "Can't open module file" }end module C

⌨️ 快捷键说明

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