Debian Codegraph @

gcc/testsuite/gfortran.dg/pr96986.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
3 !
4 ! PR fortran/96986
5 ! Calling an ENTRY with no volatile arguments incorrectly required an
6 ! explicit interface because the volatile attribute from a sibling ENTRY
7 ! was checked against the master procedure's combined formal list.
8
9 subroutine volatile_test ()
10 implicit none
11 integer, volatile :: va
12
13 entry fun_a()
14 return
15
16 entry fun_b(va)
17 call fun_c()
18 return
19 end subroutine volatile_test
20
21 subroutine fun_c ()
22 implicit none
23 call fun_a() ! Must not require explicit interface
24 return
25 end subroutine fun_c