xref: /llvm-project/flang/test/Semantics/symbol24.f90 (revision 4c9d54982c85afde04e93b4f4d3ff648e48331db)
1! RUN: %python %S/test_symbols.py %s %flang_fc1
2! Ensure that global ENTRY symbols with global bindings
3! are hidden in distinct global scopes, and nothing
4! clashes so long as binding names are distinct.
5
6!DEF: /s1 (Subroutine) Subprogram
7subroutine s1
8 !DEF: /foo (Subroutine) Subprogram
9 entry foo()
10end subroutine
11!DEF: /s2 (Subroutine) Subprogram
12subroutine s2
13 !DEF: /foo BIND(C) (Subroutine) Subprogram
14 entry foo() bind(c, name="foo1")
15end subroutine
16!DEF: /s3 (Subroutine) Subprogram
17subroutine s3
18 !DEF: /foo BIND(C) (Subroutine) Subprogram
19 entry foo() bind(c, name="foo2")
20end subroutine
21