8 character(len
=1),dimension(:) :: a
11 character(len
=1),dimension(:,:) :: a
14 character(len
=1),dimension(4) :: a
17 character(len
=1),dimension(1,2,1,2) :: a
20 character(len
=2) :: len2
21 character(len
=4) :: len4
25 call foo(len2
) ! { dg-warning "Rank mismatch in argument" }
26 call foo("ca") ! { dg-warning "Rank mismatch in argument" }
27 call bar("ca") ! { dg-warning "Rank mismatch in argument" }
28 call foobar(len2
) ! { dg-warning "contains too few elements" }
30 call foobar("bar") ! { dg-warning "contains too few elements" }
32 call arr(len2
) ! { dg-warning "contains too few elements" }
34 call arr("bar") ! { dg-warning "contains too few elements" }