2 ! Length of character dummy variable with VALUE attribute:
3 ! - must be initialization expression or omitted
4 ! - C interoperable: must be initialization expression of length one
7 ! Contributed by Tobias Burnus
10 character(10) :: c1
,c10
39 subroutine foo4(a
) ! { dg-error "VALUE attribute must have constant length" }
45 use iso_c_binding
, only
: c_char
46 character(kind
=c_char
) :: a
51 use iso_c_binding
, only
: c_char
52 !character(kind=c_char,len=1) :: a
53 character(1,kind
=c_char
) :: a
57 subroutine bar3(a
) ! { dg-error "VALUE attribute must have length one" }
58 use iso_c_binding
, only
: c_char
59 character(kind
=c_char
,len
=10) :: a
63 subroutine bar4(a
) ! { dg-error "VALUE attribute must have constant length" }
64 use iso_c_binding
, only
: c_char
65 character(kind
=c_char
,len
=*) :: a