1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Check for multiple symbols being defined with with same BIND(C) name
5 integer, bind(c
, name
="x1") :: x1
6 !ERROR: Two entities have the same global name 'x1'
7 integer, bind(c
, name
=" x1 ") :: x2
9 subroutine x3() bind(c
, name
="x3")
13 !ERROR: Two entities have the same global name 'x3'
14 subroutine x4() bind(c
, name
=" x3 ")
17 ! Ensure no error in this situation
20 subroutine x5() bind(c
, name
=" x5 ")
24 subroutine x5() bind(c
, name
=" x5 ")
27 ! Ensure no error in this situation
28 subroutine foo() bind(c
, name
="x6")
30 subroutine foo() bind(c
, name
="x7")