3 ! PR 35831: [F95] Shape mismatch check missing for dummy procedure argument
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
9 call call_a(a1
) ! { dg-error "Character length mismatch in function result" }
10 call call_a(a2
) ! { dg-error "Character length mismatch in function result" }
11 call call_b(b1
) ! { dg-error "Shape mismatch" }
12 call call_c(c1
) ! { dg-error "POINTER attribute mismatch in function result" }
13 call call_d(c1
) ! { dg-error "ALLOCATABLE attribute mismatch in function result" }
14 call call_e(e1
) ! { dg-error "CONTIGUOUS attribute mismatch in function result" }
15 call call_f(c1
) ! { dg-error "PROCEDURE POINTER mismatch in function result" }
19 character(1) function a1()
22 character(:) function a2()
27 character(2) function a3()
34 integer, dimension(1:3) :: b1
40 integer, dimension(0:4) :: b2
52 integer, pointer :: c2
61 integer, allocatable
:: d2
68 integer, dimension(:), pointer :: e1
74 integer, dimension(:), pointer, contiguous
:: e2
83 procedure(integer), pointer :: f2