1 ! RUN: %python %S/test_symbols.py %s %flang_fc1
2 ! Test handling of pernicious case in which it is conformant Fortran
3 ! to use the name of a function in a CALL statement. Almost all
4 ! other compilers produce bogus errors for this case and/or crash.
9 !DEF: /m/foo PUBLIC (Function) Subprogram
11 !DEF: /m/bar PUBLIC (Subroutine) Subprogram
12 !DEF: /m/foo/foo EXTERNAL, POINTER (Subroutine) ProcEntity
13 procedure(bar
), pointer :: foo
15 !DEF: /m/foo/baz EXTERNAL, POINTER (Subroutine) ProcEntity
16 procedure(bar
), pointer :: baz
22 !DEF: /m/baz PUBLIC (Function) Subprogram
35 !DEF: /demo MainProgram
39 !DEF: /demo/bar (Subroutine) Use
40 !DEF: /demo/p EXTERNAL, POINTER (Subroutine) ProcEntity
41 procedure(bar
), pointer :: p
43 !DEF: /demo/foo (Function) Use