3 ! Verifies that character string arguments to a bind(c) procedure have length
4 ! 1, or no len is specified.
7 subroutine destroy(path) BIND(C) ! { dg-error "must be length 1" }
10 character(len=*,kind=c_char), intent(IN) :: path
11 end subroutine destroy
13 subroutine create(path) BIND(C) ! { dg-error "must be length 1" }
16 character(len=5,kind=c_char), intent(IN) :: path
19 ! This should be valid.
20 subroutine create1(path) BIND(C)
23 character(len=1,kind=c_char), intent(IN) :: path
24 end subroutine create1
26 ! This should be valid.
27 subroutine create2(path) BIND(C)
30 character(kind=c_char), intent(IN) :: path
31 end subroutine create2
33 ! This should be valid.
34 subroutine create3(path) BIND(C)
37 character(kind=c_char), dimension(*), intent(IN) :: path
38 end subroutine create3