view gcc/testsuite/gfortran.dg/bind_c_usage_31.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do compile }
! PR fortran/84073 - this was accepted before.
module mod
  use iso_c_binding
  type, bind(c) :: a
     character(len=2,kind=c_char) :: b ! { dg-error "must have length one" }
  end type a
  character(len=2), bind(C) :: c ! { dg-error "must have length one" }
end module mod