mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
15 lines
400 B
Fortran
15 lines
400 B
Fortran
! { dg-do compile }
|
|
module x
|
|
use iso_c_binding
|
|
implicit none
|
|
contains
|
|
function bar() bind(c) ! { dg-error "cannot be an array" }
|
|
integer(c_int) :: bar(5)
|
|
end function bar
|
|
|
|
function my_string_func() bind(c) ! { dg-error "must have length 1" }
|
|
character(kind=c_char, len=10) :: my_string_func
|
|
my_string_func = 'my_string' // C_NULL_CHAR
|
|
end function my_string_func
|
|
end module x
|