Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gfortran.dg / dummy_procedure_9.f90
blob16da37f1893150f5556fdf82c3c3928f5d8e928f
1 ! { dg-do compile }
3 ! PR 40453: [F95] Enhanced (recursive) argument checking
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 program RecursiveInterface
9 call c(b2) ! { dg-error "Interface mismatch in dummy procedure" }
11 contains
13 subroutine a1(x)
14 real :: x
15 end subroutine
17 subroutine a2(i)
18 integer :: i
19 end subroutine
21 !!!!!!!!!!!!!!!
23 subroutine b1 (f1)
24 procedure(a1) :: f1
25 end subroutine
27 subroutine b2 (f2)
28 procedure(a2) :: f2
29 end subroutine
31 !!!!!!!!!!!!!!!
33 subroutine c(g)
34 procedure(b1) :: g
35 end subroutine
37 end