c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr81027.f90
blob9f23daba04a5c4f7087c2825d715080cab986228
1 program badarray
2 implicit none
3 integer:: j(3) = [1,2,3]
4 call doubling(j)
5 contains
6 subroutine doubling( n)
7 integer,intent(in)::n(:)
8 integer::m = size(n) ! { dg-error "Assumed-shape array" }
9 print *, m ! { dg-error "has no IMPLICIT type" }
10 end subroutine doubling
11 end program badarray