Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/bind_c_usage_7.f03 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
! { 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 "cannot be a character string" } 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