tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_decl_26.f90
blobbe983f8b022084406a5b8681554a7199b18add58
1 ! { dg-do compile }
3 ! PR 35831: [F95] Shape mismatch check missing for dummy procedure argument
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 program test
9 implicit none
11 interface
12 subroutine one(a)
13 integer a(:)
14 end subroutine
15 subroutine two(a)
16 integer a(2)
17 end subroutine
18 end interface
20 call foo(two) ! { dg-error "Shape mismatch in argument" }
21 call bar(two) ! { dg-error "Shape mismatch in argument" }
23 contains
25 subroutine foo(f1)
26 procedure(one) :: f1
27 end subroutine foo
29 subroutine bar(f2)
30 interface
31 subroutine f2(a)
32 integer a(:)
33 end subroutine
34 end interface
35 end subroutine bar
37 end program