1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
3 ! If proc-language-binding-spec (bind(c)) is specified, the proc-interface
4 ! shall appear, it shall be an interface-name, and interface-name shall be
5 ! declared with a proc-language-binding-spec.
10 subroutine proc1() bind(c
)
17 subroutine proc3() bind(c
)
21 procedure(proc1
), bind(c
) :: pc1
! no error
22 procedure(proc3
), bind(c
) :: pc4
! no error
24 !ERROR: An interface name with the BIND attribute must appear if the BIND attribute appears in a procedure declaration
25 procedure(proc2
), bind(c
) :: pc2
27 !ERROR: An interface name with the BIND attribute must appear if the BIND attribute appears in a procedure declaration
28 procedure(integer), bind(c
) :: pc3
30 !ERROR: An interface name with the BIND attribute must appear if the BIND attribute appears in a procedure declaration
31 procedure(), bind(c
) :: pc5