1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! Check for multiple symbols being defined with with same BIND(C) name
6 integer, bind(c
, name
="x1") :: x1
7 !ERROR: Two symbols have the same BIND(C) name 'x1'
8 integer, bind(c
, name
=" x1 ") :: x2
10 !ERROR: Two symbols have the same BIND(C) name 'x3'
11 subroutine x3() bind(c
, name
="x3")
15 subroutine x4() bind(c
, name
=" x3 ")
18 ! Ensure no error in this situation
21 subroutine x5() bind(c
, name
=" x5 ")
25 subroutine x5() bind(c
, name
=" x5 ")