2 ! { dg-additional-sources bind_c_usage_17_c.c }
10 FUNCTION cdir() BIND(C
,name
="cdir") RESULT(r
)
12 CHARACTER(kind
=C_CHAR
) :: r
20 character(len
=1) :: str1
21 character(len
=4) :: str4
25 if(str1
/= '/') call abort()
27 if(str4
/= '/' .or
. ichar(str4(2:2)) /= 32) call abort()
29 if (i
/= 47) call abort()
31 WRITE(str4
,'(a)') cdir()
32 if(str4
/= '/' .or
. ichar(str4(2:2)) /= 32) call abort()
34 WRITE(str4
,'(i0)') ICHAR(cdir())
35 if(str4
/= '47' .or
. ichar(str4(3:3)) /= 32) call abort()