10 integer, parameter :: u
= 65
12 integer, parameter :: n
= 26
17 c
= [(achar(i
), i
=u
,u
+n
-1)]
19 call gfc_descriptor_c_char(c
)
28 subroutine chr_s(a
, b
)
29 character, intent(in
) :: a(..)
30 character, intent(in
) :: b(:)
46 ! Contributed by Damian Rouson <damian@sourceryinstitute.org>
47 subroutine gfc_descriptor_c_char(a
)
49 if(rank(a
)/=1) stop 3 ! ICE (also for lbound, ubound, and c_loc)
50 end subroutine gfc_descriptor_c_char
54 ! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
59 if(any(lbound(x
)/=[1])) stop 4
60 if(any(ubound(x
)/=[n
])) stop 5
70 character(77) :: x(..)
77 if(lbound(x
, dim
=1)/=1) stop 8
78 if(ubound(x
, dim
=1)/=n
) stop 9
79 if(size(x
, dim
=1)/=n
) stop 10