2020-02-14 22:02:29 +08:00
|
|
|
! RUN: %S/test_symbols.sh %s %flang %t
|
2018-08-23 07:05:06 +08:00
|
|
|
! Test host association in internal subroutine of main program.
|
|
|
|
|
|
|
|
!DEF: /main MainProgram
|
|
|
|
program main
|
2018-09-12 08:33:42 +08:00
|
|
|
!DEF: /main/x ObjectEntity INTEGER(4)
|
2018-08-23 07:05:06 +08:00
|
|
|
integer x
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /main/s (Subroutine) Subprogram
|
2018-08-23 07:05:06 +08:00
|
|
|
call s
|
|
|
|
contains
|
2018-10-16 05:44:01 +08:00
|
|
|
!REF: /main/s
|
2018-08-23 07:05:06 +08:00
|
|
|
subroutine s
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /main/s/y (Implicit) ObjectEntity REAL(4)
|
2018-08-23 07:05:06 +08:00
|
|
|
!REF: /main/x
|
|
|
|
y = x
|
|
|
|
end subroutine
|
|
|
|
end program
|