2020-05-12 02:38:53 +08:00
|
|
|
! RUN: %S/test_symbols.sh %s %t %f18
|
2018-12-18 23:59:40 +08:00
|
|
|
!DEF: /m1 Module
|
|
|
|
module m1
|
|
|
|
contains
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /m1/foo_complex PUBLIC (Subroutine) Subprogram
|
2018-12-18 23:59:40 +08:00
|
|
|
!DEF: /m1/foo_complex/z ObjectEntity COMPLEX(4)
|
|
|
|
subroutine foo_complex (z)
|
|
|
|
!REF: /m1/foo_complex/z
|
|
|
|
complex z
|
|
|
|
end subroutine
|
|
|
|
end module
|
|
|
|
!DEF: /m2 Module
|
|
|
|
module m2
|
|
|
|
!REF: /m1
|
|
|
|
use :: m1
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /m2/foo PUBLIC (Subroutine) Generic
|
2018-12-18 23:59:40 +08:00
|
|
|
interface foo
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /m2/foo_int PUBLIC (Subroutine) Subprogram
|
2018-12-18 23:59:40 +08:00
|
|
|
module procedure :: foo_int
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /m2/foo_real EXTERNAL, PUBLIC (Subroutine) Subprogram
|
2018-12-18 23:59:40 +08:00
|
|
|
procedure :: foo_real
|
2019-09-13 14:03:06 +08:00
|
|
|
!DEF: /m2/foo_complex PUBLIC (Subroutine) Use
|
2018-12-18 23:59:40 +08:00
|
|
|
procedure :: foo_complex
|
|
|
|
end interface
|
|
|
|
interface
|
|
|
|
!REF: /m2/foo_real
|
|
|
|
!DEF: /m2/foo_real/r ObjectEntity REAL(4)
|
|
|
|
subroutine foo_real (r)
|
|
|
|
!REF: /m2/foo_real/r
|
|
|
|
real r
|
|
|
|
end subroutine
|
|
|
|
end interface
|
|
|
|
contains
|
|
|
|
!REF: /m2/foo_int
|
|
|
|
!DEF: /m2/foo_int/i ObjectEntity INTEGER(4)
|
|
|
|
subroutine foo_int (i)
|
|
|
|
!REF: /m2/foo_int/i
|
|
|
|
integer i
|
|
|
|
end subroutine
|
|
|
|
end module
|