Skip to content

Commit eee099c

Browse files
Modified LIT test to test the case of multiple entries with conflicting BIND(C) name
1 parent 5ffa159 commit eee099c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flang/test/Semantics/bind-c01.f90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ subroutine foo() bind(c, name="x6")
2929
end subroutine
3030
subroutine foo() bind(c, name="x7")
3131
end subroutine
32+
33+
subroutine entries()
34+
35+
entry e1() bind(C, name="e")
36+
37+
!ERROR: Two entities have the same global name 'e'
38+
entry e2() bind(C, name="e")
39+
end subroutine

0 commit comments

Comments
 (0)