1 ! RUN: %python %S/test_symbols.py %s %flang_fc1
2 ! Test host association in internal subroutine of main program.
4 !DEF: /main MainProgram
6 !DEF: /main/x ObjectEntity INTEGER(4)
8 !DEF: /main/s (Subroutine) Subprogram
13 !DEF: /main/s/y (Implicit) ObjectEntity REAL(4)
14 !DEF: /main/s/x HostAssoc INTEGER(4)
17 !DEF: /main/s/s2 (Subroutine) Subprogram
19 !DEF: /main/s/s2/z (Implicit) ObjectEntity REAL(4)
20 !DEF: /main/s/s2/x HostAssoc INTEGER(4)
26 !DEF: /s (Subroutine) Subprogram
28 !DEF: /s/x ObjectEntity REAL(4)
30 !DEF: /s/s1 (Subroutine) Subprogram
35 !DEF: /s/s1/x HostAssoc REAL(4)
40 !DEF: /sb (Subroutine) Subprogram
42 !DEF: /sb/x TARGET ObjectEntity REAL(4)
44 !DEF: /sb/s1 (Subroutine) Subprogram
49 !DEF: /sb/s1/p POINTER ObjectEntity REAL(4)
52 !DEF: /sb/s1/x TARGET HostAssoc REAL(4)
57 ! Test host associated symbols are also created for symbols that are use
58 ! associated in the host.
62 !DEF: /m1/x PUBLIC ObjectEntity REAL(4)
64 !DEF: /m1/x_target PUBLIC, TARGET ObjectEntity REAL(4)
65 real, target
:: x_target
68 !DEF: /s_use (Subroutine) Subprogram
72 !DEF: /s_use/x Use REAL(4)
74 !DEF: /s_use/s1 (Subroutine) Subprogram
79 !DEF: /s_use/s1/x HostAssoc REAL(4)
84 !DEF: /sb_use (Subroutine) Subprogram
88 !DEF: /sb_use/x_target TARGET Use REAL(4)
90 !DEF: /sb_use/s1 (Subroutine) Subprogram
95 !DEF: /sb_use/s1/p POINTER ObjectEntity REAL(4)
98 !DEF: /sb_use/s1/x_target TARGET HostAssoc REAL(4)