1 !RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
2 !Test inheritance of implicit rules in submodules and separate module
6 implicit integer(1)(a
-z
)
8 module subroutine mp(da
) ! integer(2)
9 implicit integer(2)(a
-z
)
12 save :: mv
! integer(1)
16 implicit integer(8)(a
-z
)
17 save :: sm1v
! integer(8)
19 module subroutine sm1p(da
) ! default real
25 implicit integer(2)(a
-c
,e
-z
)
26 save :: sm2v
! integer(2)
28 module subroutine sm1p(da
) ! default real
29 save :: sm1pv
! inherited integer(2)
30 !CHECK: PRINT *, 1_4, 8_4, 2_4, 4_4, 2_4
31 print *, kind(mv
), kind(sm1v
), kind(sm2v
), kind(da
), kind(sm1pv
)
36 implicit integer(8)(a
-z
)
37 save :: sm3v
! integer(8)
40 save :: mpv
! inherited integer(8)
42 !CHECK: PRINT *, 1_4, 8_4, 2_4, 8_4, 2_4, 8_4
43 print *, kind(mv
), kind(sm1v
), kind(sm2v
), kind(sm3v
), kind(da
), kind(mpv
)