annotate gcc/testsuite/gfortran.dg/entry_11.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! PR31609 module that calls a contained function with an ENTRY point
kono
parents:
diff changeset
3 ! Test case derived from the PR
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 MODULE ksbin1_aux_mod
kono
parents:
diff changeset
6 CONTAINS
kono
parents:
diff changeset
7 SUBROUTINE sub
kono
parents:
diff changeset
8 i = k()
kono
parents:
diff changeset
9 END SUBROUTINE sub
kono
parents:
diff changeset
10 FUNCTION j ()
kono
parents:
diff changeset
11 print *, "in j"
kono
parents:
diff changeset
12 j = 111
kono
parents:
diff changeset
13 ENTRY k ()
kono
parents:
diff changeset
14 print *, "in k"
kono
parents:
diff changeset
15 k = 222
kono
parents:
diff changeset
16 END FUNCTION j
kono
parents:
diff changeset
17 END MODULE ksbin1_aux_mod
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 program testit
kono
parents:
diff changeset
20 use ksbin1_aux_mod
kono
parents:
diff changeset
21 l = j()
kono
parents:
diff changeset
22 print *, l
kono
parents:
diff changeset
23 l = k()
kono
parents:
diff changeset
24 print *, l
kono
parents:
diff changeset
25 end program testit