1 ! RUN: %python %S/test_errors.py %s %flang_fc1
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
)
16 procedure(proc1
), bind(c
) :: pc1
! no error
18 !ERROR: An interface name with BIND attribute must be specified if the BIND attribute is specified in a procedure declaration statement
19 procedure(proc2
), bind(c
) :: pc2
21 !ERROR: An interface name with BIND attribute must be specified if the BIND attribute is specified in a procedure declaration statement
22 procedure(integer), bind(c
) :: pc3