binding_label_tests_15.f03

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

F03
13
字号
! { dg-do compile }! Verify that an error is correctly reported if multiple identifiers are given! with a bind(c) statement that has a NAME= specifier.module m  use iso_c_binding  implicit none  integer(c_int), bind(C, name="") :: a,b ! { dg-error "Multiple identifiers" }  integer(c_int), bind(C, name="bob") :: c,d ! { dg-error "Multiple identifiers" }  integer(c_int) :: e,f   bind(c, name="foo") :: e,f ! { dg-error "Multiple identifiers" }end module m

⌨️ 快捷键说明

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