8 integer,dimension(4) :: x
11 integer,dimension(1,2,1,2) :: y
16 call foobar(a
) ! { dg-error "contains too few elements" }
18 call foobar(b(1:3)) ! { dg-error "contains too few elements" }
20 call foobar(b(1:5:2)) ! { dg-error "contains too few elements" }
22 call foobar(b(3)) ! { dg-error "Actual argument contains too few elements" }
23 call foobar(reshape(a(1:3),[2,1])) ! { dg-error "contains too few elements" }
24 call foobar(reshape(b(2:5),[2,2]))
26 call arr(a
) ! { dg-error "contains too few elements" }
28 call arr(b(1:3)) ! { dg-error "contains too few elements" }
30 call arr(b(1:5:2)) ! { dg-error "contains too few elements" }
32 call arr(b(3)) ! { dg-error "contains too few elements" }
33 call arr(reshape(a(1:3),[2,1])) ! { dg-error "contains too few elements" }
34 call arr(reshape(b(2:5),[2,2]))